How Do I Change the Windows7 LAN Proxy Config from the Command Line

Posted by david.barkhuizen on Super User See other posts from Super User or by david.barkhuizen
Published on 2010-10-08T12:48:33Z Indexed on 2012/09/13 3:42 UTC
Read the original article Hit count: 321

In Windows7, Is it possible to define/change the proxy config from the command line ?

So, using the gui, I would go:

Start > Control Panel > Network and Internet > Internet Options > Connections > LAN Settings

and then - enable/disable the proxy - define IP:port of proxy server

But I would like to rather do this from the command line (so that I can run the command from a batch-file with a shortcut key - enabling me to switch proxy configs using a short-cut, rather than having to wade through the MS wizard).

I've looked at using netsh.exe to change the settings for WinHTTP, but this seems to be thr wrong thing to do, as the WinHTTP setting do not appear to be related to the LAN settings.

Much appreciated folks.

© Super User or respective owner

Related posts about windows-7

Related posts about configuration