Solved

Disable proxy enable autodetect through script

Posted on 2007-11-14
5
3,224 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to count occurrences of each item in an array.

746 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

10 Experts available now in Live!

Get 1:1 Help Now