Solved

Turn off proxy flag in IE using VBScript

Posted on 2008-06-20
4
1,295 Views
Last Modified: 2013-12-08
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?
0
Comment
Question by:Butterfield_Cayman
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
sungenwang earned 200 total points
ID: 21831549
Sure. The code below will turn it off.
sew

Dim WshShell

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_SZ"

Open in new window

0
 

Author Comment

by:Butterfield_Cayman
ID: 21832112
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?
0
 
LVL 14

Expert Comment

by:sungenwang
ID: 21832184
Once you restart your browser, the change should take place.
sew
0
 

Author Comment

by:Butterfield_Cayman
ID: 21832569
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

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now