IE Enable/Disable Proxy Settings via Registry

173,860

modifying the proxy value under

[HKEY_USERS\<your SID>\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

doesnt need to restart ie

Share:
173,860
Oscar
Author by

Oscar

please delete me

Updated on July 09, 2022

Comments

  • Oscar
    Oscar almost 2 years

    I need to enable/disable IE proxy settings while IE is running. I have a PowerShell script line to enable the proxy:

    Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 1
    


    or this to disable:

    Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 0
    


    Above scripts work, registry key gets updated. However, IE doesn't pick up the value until I close all the open IE windows and open a new one. I need already opened/running IE windows to pick up the new setting.

    Would there be any way to achieve what I want?