Solved

Turn off proxy flag in IE using VBScript

Posted on 2008-06-20
4
1,300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
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.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

691 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