How to change Windows Proxy Settings through command line

For Windows Laptop users, Changing proxy settings is a routine work for those, whose organization is providing internet for employees through proxy service.

Everyday at the start of work in office, changing proxy settings to use office proxy and disable the use of proxy in proxy settings when using the laptop in resident is a tire some work.

To make it comfortable, some people choose to use Firefox/other web browsers for their home use, where as IE/Chrome or a different browsers for office use. Using different browser is not only an option to choose from, there are plenty of browser add-on's also available to change the proxy settings just by one click following by the selection of their work environment office/home or whatever preconfigured by the user in the add on.

I'll just provide you a simple command that you can run from your windows command prompt to change the IE Proxy settings.

Even more the commands can be put in a file or two, one for disabling proxy and other one to configure proxy settings to use in office environment. Just by calling the file from windows command prompt does the proxy configuration.

You may even consider to add the script files part of windows startup and shutdown if needed.

Disable Proxy:

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

Enable Proxy:

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

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d YourProxyServer.Com:80 /f' 

Note: Replace the YourProxyServer.Com:80 with proxy server detail pertaining to your environment in the above command.

As it simply done, It will be very beneficial as most of the application including Google Chrome uses windows proxy settings and thus change/irrelevant configuration in the proxy settings affects the application's network state.

Post a Comment

3 Comments

  1. Proxy servers are useful to establish connection to computer systems that use different servers. In order to ensure the safety of computer users who will try these programs, it is important that they have a closer look at the special functions and different types of proxies that clients can always use. my company

    ReplyDelete
  2. Thanks for providing very resourceful article . Keep posting Good stuffs. the article is very effective and helpful. I really enjoy it .ping proxy

    ReplyDelete