Thursday 21 February 2008

Sample script to update the proxy settings

set WSHShell = WScript.CreateObject("WScript.Shell")

WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL", "(Your proxy here)"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0, "REG_DWORD"
MsgBox "Proxy settings updated succesfully."

No comments: