The ProxyCfg.exe utililty is an important tool, which us SMS Admins will encounter when we need to adjust proxy settings on a client so that it can communicate with the assigned site servers WSUS role.

I needed ProxyCfg to solve a problem on a Windows 2008 Enterprise server today, and found out that ProxyCfg.exe has been deprecated on Vista and Win2008, but what replaces it?

The answer is the NetSH command.

To show the current proxy settings (from a CMD prompt)

  1. NetSH
  2. WinHTTP
  3. Show Proxy

Or

  1. NetSH WinHTTP Show Proxy

To set the proxy

  1. NetSH
  2. WinHTTP
  3. Set Proxy proxy-server="PROXY.COM:8080" bypass-list="SERVER.COM"
  4. Show Proxy

Or

  1. NetSH WinHTTP Set Proxy proxy-server="PROXY.COM:8080" bypass-list="SERVER.COM"

More commands are available

dump           - Displays a configuration script.
import         - Imports WinHTTP proxy settings. (equiv of ProxyCFG -u)
reset          - Resets WinHTTP settings. (equiv of ProxyCFG - D)
set            - Configures WinHTTP settings.
show           - Displays currents settings.

So now all functionaly of ProxyCfg can be accomplished using the NetSH command

ProxyCfg -U = NetSH WinHTTP import Proxy ie

ProxyCfg -D = NetSH WinHTTP reset proxy

ProxyCfg -P = NetSH WinHTTP Set Proxy proxy-server="PROXY.COM:8080" bypass-list="SERVER.COM"

Should get you up and running again ...