• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3263
  • Last Modified:

Disable proxy enable autodetect through script

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
DenisCooper
Asked:
DenisCooper
  • 2
  • 2
1 Solution
 
bsharathCommented:
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
 
DenisCooperAuthor Commented:
I don't want a proxy server to be used, but i also want the Auto Detect Settings box checked.
0
 
bsharathCommented:
Hi Denis...As you know i am no scripting guy...

Just thought could share what i had...Hope some one else will help....
0
 
DenisCooperAuthor Commented:
thanks....
0
 
Farhan KaziSystems EngineerCommented:
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now