Search code examples
windowsbatch-fileinternet-options

Batch File to disable internet options proxy server


In Windows, I want to disable the Proxy Server setting in Internet Options by using a batch Script. What command can I use to do this?

If unsure what I am referring to, see

Internet Properties > Connections > LAN Settings >Proxy Server

Thank you


Solution

  • It's in the registry, under [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

    you can either use the REG command in your BAT, or prepare a couple of .REG files, to automate the changes.

    for example, to disable Proxy, try

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