0
In a batch script, I am updating a registry value with the REG
command to disable the manual proxy.
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
However, this does not take effect until I open the proxy settings page in Windows (Start Menu > Change Proxy Settings). All I have to do is open the page and the property gets updated correctly.
Is there any way to reload/update this setting without opening the network settings?
Have you tried rebooting the machine ? If so you may reboot it in the batch file as well, and if you’re on a domain I suggest you make use of the group policy and maybe if you change the registers values whole the pc is signed out ( remotely ) then the user who signs in gets the settings. – Elie – 2018-06-21T14:10:06.910
The registry is updated when you run the command, the program has no clue until you open that settings window and it checks the registry for that setting. – Moab – 2018-06-21T14:19:24.127
@Elie No, I've not tried rebooting and although I'm quite confident that would sufficiently update the variable, it is not really an option for me either. Group policy won't work because I'm only a local admin. – JayD – 2018-06-21T15:13:48.040
@Moab Yes, that is essentially my question: how to update "the program" from within my batch script? I've edited the misleading title. – JayD – 2018-06-21T15:15:04.553