Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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]
    "ProxyServer"="xxx.xxx.xxx.xxx:xxxx"
    "ProxyOverride"="<local>"
    "ProxyEnable"=dword:00000001
    
  • .vbs file:

    set wshshell = createobject("Wscript.shell")
    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD"
    WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer","192.168.001.250:80"
    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
add comment

Your Answer

 
discard

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.