In Edge, settings> system > Open your computer's proxy settings
I have this
I need to untoggle the "Use setup script", using a script, since there is some background process I can't control that keeps toggling this back on.
I want a script that runs every 5 sec and toggles this off.
Here is what I have based on many searches, and that doesn't work:
basic, doesn't do anything
@ECHO OFF
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /fREG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /falso doesn't do anything
Adding
Shell.run "ms-settings:network-proxy"
WScript.Sleep 1000
Shell.Run "taskkill /f /im SystemSettings.exe", , Truealso doesn't do anything.
I need to toggle-off the above setting.
How can this be done?
2 Answers
A batch command to remove the proxy is:
netsh winhttp reset proxyThis command needs to be run as Administrator.
Reference:Configure device proxy and Internet connectivity settings.
As the above didn't help the poster, I traced the Settings app and
found that this setting is found under the registry keyHKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings.
The value name is AutoConfigURL. Setting it to empty
has undone the setting of "Use setup script" in the Settings app.
Using a batch command that is run as Administrator:
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /f 9 This worked for me in a batch file. I'm using Windows 10:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "" /f