Link to home
Start Free TrialLog in
Avatar of Butterfield_Cayman
Butterfield_Cayman

asked on

Turn off proxy flag in IE using VBScript

In IE, if you go to tools> connections tab> Lan Settings - there's a flag at the bottom called "use a proxy server for your LAN .......) Is there a way in VBScript to turn that flag off?
ASKER CERTIFIED SOLUTION
Avatar of sungenwang
sungenwang
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Butterfield_Cayman
Butterfield_Cayman

ASKER

doesn't seem to work. I've found that key in the registry and it looks like the value is actually "0" to turn it off. But the code doesn't seem to be doing anything??
Any ideas?
Once you restart your browser, the change should take place.
sew
figured it out, had to change a couple of settings in your code, but got it working, thanks mucho. Working code is attached.
points are yours though as I wouldn't of had a clue where to start otherwise.
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0, "REG_DWORD"

Open in new window