Changing the proxy settings in windows is a pain. However most of the folks working in corporate offices ritually do this every single day. Here is an easier way to do that. Of course we are tweaking the REGISTRY of windows a litle bit, so back up your registry before attempting this.

Step1:
Create an empty file with extension .reg and name it with whatever file name you wish.
Example SetProxy.reg

Step2:
Copy paste the following snippet of code and save it. Read through the comments and change the values as desired.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
REGEDIT4
; Anything starting with Semicolon is a comment in .reg file
; The following is the path where we change internet Settings
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
; Enable the proxy by setting it to 1
"ProxyEnable"=dword:00000001
; Specify the proxy that you wish to use and the port Ex: "proxy.com:8080"
"ProxyServer"="YourProxy:PortNumber"
; We override any auto configured proxy files with blank
"AutoConfigURL"=""
; If you want to Bypass proxy for certain addresses, do it here.
; if you wish to Bypass more than one separate it with semicolons
; Ex: "*localhost*;blahblah.com;"
"ProxyOverride"="*localhost*"

Step3:
Create an empty file with extension .bat and name it with whatever file name you wish.
Example SetProxy.bat

Step4:
Copy paste the following snippet of code and save it

1
2
3
4
5
REM In batch file anything after REM is a comment
REM regedit is a command
REM /s switch means Silent execution, i.e. hide confirmation box when importing files
REM SetProxy.reg is the registry file you saved earlier with the modified settings
regedit /s SetProxy.reg

Now save both these files in the same folder, create the shortcut for the .bat file on your desktop and double click it whenever you want to apply the proxy settings. Easy ain’t it 🙂

Leave a Reply

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

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>