Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have inherited a network which had been using a proxy sever ( The proxy server has died and I want to force all users to connect without the proxy. Rather than doing this on each machine I wish to modify the logon.bat file.

What should I put into the .bat file to clear the existing settings and return everything to a clear network?

(Windows 2003 Server environment, Windows XP clients)

share|improve this question

To clear the proxy you could use a registry file that the script calls to set the proxy to off.

Add this to a .reg file and run it at logon.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

Alternatively a vbs file to run and turn it off:

Option Explicit   
Dim WSHShell, strSetting  
Set WSHShell = WScript.CreateObject("WScript.Shell")  

WSHShell.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0, "REG_DWORD"

This is not my code and should be checked thoroughly although with a quick glance it seems fine.

You could use GPO's to change all settings on the machines though. This would be much simpler if you're comfortable with Group Policy.

Hope it helps

share|improve this answer

Some places also set the proxy via group policy under IE settings. Also, you can set proxy settings via DHCP and http with whats called WPAD config:

Just thought I would mention, in case it was deployed via GPO, if you delete the registry keys, it will come back on the next policy refresh.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.