Solved

Disable proxy enable autodetect through script

Posted on 2007-11-14
5
3,225 Views
Last Modified: 2012-06-27
I need a script whcih can disable the proxy server and enable auto detect settings for IE. I can't use GPO as there is not the facility to do this in our environment.

I need this to be the setting regardless of what is currently set on the PC.

Thanks for your help.
0
Comment
Question by:DenisCooper
  • 2
  • 2
5 Comments
 
LVL 11

Expert Comment

by:bsharath
ID: 20280108
See this post...

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_22814030.html

Edit the reg file with the proxy name and port

Hope this helps...
0
 
LVL 7

Author Comment

by:DenisCooper
ID: 20281032
I don't want a proxy server to be used, but i also want the Auto Detect Settings box checked.
0
 
LVL 11

Expert Comment

by:bsharath
ID: 20281109
Hi Denis...As you know i am no scripting guy...

Just thought could share what i had...Hope some one else will help....
0
 
LVL 7

Author Comment

by:DenisCooper
ID: 20281151
thanks....
0
 
LVL 26

Accepted Solution

by:
farhankazi earned 500 total points
ID: 20281887
You can include following three lines inside a script to disable proxy settings and enable Automatically detect settings in IE

:: BATCH CODE START
Reg Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /v SavedLegacySettings /f

REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /v DefaultConnectionSettings /f
:: BATCH CODE START

Hope this helps!
Farhan
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

912 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

25 Experts available now in Live!

Get 1:1 Help Now