Windows 7 – Setting Proxy Configuration from the command line

Written by James McDonald

January 27, 2012


Was working from memory today and found that proxycfg.exe doesn’t exist in Windows 7 and it’s been replaced by netsh.

You can do it all from the netsh command line but it’s quite easy to first set it up under your Internet Options and then Import the settings as follows:

Enter your proxy address and port then click the Advanced button to configure the proxy bypass list.

Proxy Address

Set proxy address and port

Under advanced settings add the domains / IP’s to bypass

Image of Internet Explorer Proxy Dialog

Set up bypass-list in Internet Explorer

Then import the settings using netsh

Windows CMD Dialog showing netsh winhttp import proxy command

Using netsh to import proxy settings


netsh winhttp import proxy source=ie

Current WinHTTP proxy settings:

    Proxy Server(s) :  192.168.45.22:3128
    Bypass List     :  192.168.55.*;*.internaldomain.local;<local


netsh winhttp show proxy

Current WinHTTP proxy settings:

    Proxy Server(s) :  192.168.45.22:3128
    Bypass List     :  192.168.55.*;*.internaldomain.local;<local>

1 Comment

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...