Additionally, you need to add the following restriction:
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings
ProxySettingsPerUser
String Value
1 = Per user proxy settings, 0 = Per machine proxy settings.
This makes it much easier to script, since you're applying the settings at the machine level.
'--------- Begin Script Code ------------------
Dim WshShell, strRegKey, strBypassURL, strProxyAddr
WScript.CreateObject("WScript.Shell")
strRegKey = "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\"
'where the format is as shown, separated by semi-colons, and the <local> on the end say for local addresses.
'You may need to play with the actual URL format, or use the specific IP.
strBypassURL =
www.msn;www.google;<local>
'where the IP address and port are the ones for your proxy server
strProxyAddress = "127.0.0.1:82"
WshShell.RegWrite strRegKey & "MigrateProxy", 1, "REG_DWORD"
WshShell.RegWrite strRegKey & "ProxyEnable", 1, "REG_DWORD"
WshShell.RegWrite strRegKey & "ProxyServer", strProxyAddr, "REG_SZ"
WshShell.RegWrite strRegKey & "ProxyOverride", strBypassUrl, "REG_SZ"
WshShell.RegWrite strRegKey & "ProxySettingsPerUser", 0, "REG_SZ"
Set WshShell = Nothing
'--------- End Script Code ------------------