The Kaizen Blog

Attempts to continually improve in all walks of life

Automate Enabling and Disabling IE Proxy settings

with 5 comments

When I work from home, I connect to the corporate network over the VPN and need to use the corporate proxy server. When I’m not working, I do not need to go through the proxy. Similarly, when I need to connect to my Wireless router at home, I do not need proxy. It was getting cumbersome each time to manually turn on/off these IE settings. So I decided to automate this.

I knew this could be done through registry scripts. Little bit of googling revealed the appropriate keys to be modified. I exported the appropriate tree from registry editor into .reg file. Removed most of the keys I was not interested in. Created two copies, one to enable and other to disable. Saved them as .reg files. Half of the battle was won.

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

Change the ProxyEnable to zero, to disable the proxy.

.reg extension is automatically associated with Registry Editor. But default mode is interactive, which wasn’t too nice. So I went to /s switch for silent. Next create two batch files that call the regedit.exe with /s switch and appropriate .reg file.

This can be further automated by creating shortcuts inside your faviourite application launcher. (Launchy, Slickrun and my favourite DOMercury)


Written by Mandar Vaze

April 14, 2008 at 5:44 am

Posted in Productivity, Technical

Tagged with , ,

5 Responses

Subscribe to comments with RSS.

  1. Hi
    Just wondering does it matter where you save the registry files
    Thanks in Advance


    May 5, 2010 at 5:06 pm

  2. Great post however , I was wanting to know if you could write a litte more on this subject?
    I’d be very thankful if you could elaborate a little bit more. Thanks!

    single cup coffee

    February 13, 2013 at 7:00 am

  3. Hey there would you mind stating which blog platform you’re working with? I’m planning to start my own blog
    soon but I’m having a tough time choosing between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I’m looking for something completely unique.
    P.S Apologies for being off-topic but I had to ask!

    local seo optimization

    July 24, 2013 at 3:18 am

    • I’m using hosted
      The theme used is “The Journalist v1.9”

      Mandar Vaze

      July 24, 2013 at 12:17 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: