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::HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" ProxyEnable -value 1
or this to disable:
Set-ItemProperty -Path "Registry::HKCUSoftwareMicrosoftWindowsCurrentVersionInternet 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?
See Question&Answers more detail:os