Server Fault is a question and answer site for system and network administrators. 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 want to create a batch file to remove Internet Explorer proxy settings check box. Not to grey it out - but to remove IE from using proxy settings. Anyone got any scripts for me?

share|improve this question
up vote 0 down vote accepted

Setting proxy settings:

  • .reg file:

    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
  • .vbs file:

    set wshshell = createobject("")
    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD"
    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer",""
    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride","<local>"
    wshshell.popup "Proxy Example set.",3,"Messagebox"
  • but why not use Group Policy?

share|improve this answer
I can add the use of the proxy server, but in GP how do you remove the use of proxy? – The Woo Sep 9 '09 at 2:35
just unchecked the box "Enable Proxy Settings" in GPO? If that doesn't help, try making the change in the 'User Config>Windows Settings>IE Maintenance>Connection settings. Select 'Import the current connection settings from this machine' Choose LAN Settings and modify them to what you need. I would leave all boxes unchecked. Apply the settings and run a GPupdate /force. Check the logs for any errors and test on a client PC. – brengo Sep 9 '09 at 7:13

Internet explorer and Google chrome both shares same proxy settings. So if we change setting in internet explorer, then it also effects in Google chrome. We can change proxy setting from CMD (command line prompt).

Disable proxy setting:


REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

Enable proxy setting:


REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d address:portNumber /f

address: New proxy address portNumber: Port Number

Save the commands in a batch file and execute it. It will disable/enable the proxy setting for browser.

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.