Script Automatically change IE proxy

ECHO Adding proxy settings…

reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections” /v “DefaultConnectionSettings” /t REG_SZ /d 460000001e00000001000000000000000000000000000000010000000000000018dc31de5756ce0100000000000000000000000000000000 /f

reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings” /v AutoConfigURL /f

reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings” /v ProxyEnable /t REG_DWORD /d 1 /f

reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings” /v ProxyServer /t REG_SZ /d ipaddress:port /f

reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings” /v ProxyOverride /t REG_SZ /d “<local>” /f

pause

or

ECHO Adding proxy settings…

reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections” /v “DefaultConnectionSettings” /t REG_SZ /d 460000001e00000001000000000000000000000000000000010000000000000018dc31de5756ce0100000000000000000000000000000000 /f

reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings” /v AutoConfigURL /t REG_SZ /d http://abc/wpad.dat /f

pause

Noted:

Uncheck Automatically detect settings

reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections” /v “DefaultConnectionSettings” /t REG_SZ /d 460000001e00000001000000000000000000000000000000010000000000000018dc31de5756ce0100000000000000000000000000000000 /f

Check Automatically detec setting

reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections” /v “DefaultConnectionSettings” /t REG_SZ /d 460000001e00000001000000000000000000000000000000010000000000000018dc31de5756ce0100000000000000000000000000000000 /f
In particular, the 01 set that I have bolded is what disables it (09 is enabled).

https://social.technet.microsoft.com/Forums/windowsserver/en-US/cb6abb30-4360-4d3d-93fc-61823b2a5c20/turn-off-auto-detect-settings-in-ie-using-gpo?forum=winserverGP

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s