Scripting Internet Explorer 6 Proxy settings

T

Tad Biggs

Is there a way to script changes to Internet Explorer 6.0
proxy settings? What I need to do is set our Internet
Explorer connection settings to use our proxy server and
also setup the advanced to bypass local and specific urls.

Any help would be most appreciated....
 
D

Doug Knox MS-MVP

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 ------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top