Skip to content

Instantly share code, notes, and snippets.

@butageek
Last active March 5, 2020 02:22
Show Gist options
  • Save butageek/8bf2d7f040b2ae2e078438ee3894aa44 to your computer and use it in GitHub Desktop.
Save butageek/8bf2d7f040b2ae2e078438ee3894aa44 to your computer and use it in GitHub Desktop.
Proxy Server Settings on Windows

Enable Proxy

Set ProxyEnable to 1 (enable proxy)

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

Add ProxyServer Value

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d 13.76.185.166:3128 /f

Add ProxyOverride Value = (check “Don’t use the proxy server for local addresses”)

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /d "<local>" /f

Disable Proxy

Set ProxyEnable to 0 (disable proxy)

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

Delete ProxyServer Value

reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f

Delete ProxyOverride Value (uncheck “Don’t use the proxy server for local address”)

reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /f

Reference

reg command reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment