The steps mentioned in this article apply Windows server 8, Windows 8, Windows server 2008, Windows server 2008 R2 and Windows 7.
In Windows 2003, there was proxycfg command line utility to configure proxy settings for WinHTTP services, however in Windows 8 / 2008 R2 it has been discontinued. Netsh.exe now does the configuration for WinHTTP proxy in this version. Click here for a reference to proxycfg command
Here are the list of available commands:
ProxyName is the where you would enter your proxy server name. Advisable that you launch the command prompt as an administrator.
Set WinHTTP proxy information:
1. netsh winhttp set proxy ProxyName
2. netsh winhttp set proxy ProxyName:803. netsh winhttp set proxy ProxyName:80 "<local>"4. netsh winhttp set proxy proxy-server="http=Proxy1;https=Proxy2" bypass-list="*.winplat.net"
Reset proxy information: Resets any proxy settings configured earlier; set to detect setting automatically.netsh winhttp reset proxy
Import proxy informationnetsh winhttp import proxy ie
Show WinHTTP proxy informationnetsh winhttp show proxy