Internet explorer proxy changes via registry via batch file

Posted on 2005-04-21
Last Modified: 2008-02-26

We use a proxy at work so on my laptop I have to easily switch between telling Internet explorer to use a proxy (at work) and not use a proxy (at home or at a hotel).

I do this with two simple batch files, on.bat and off.bat.  

Everything works great but I lose the exceptions listed in the ADVANCED tab (tools/internet options/connections/lan settings/advanced) when I run the batch files.  I put servers in here which I never want to use the proxy for even if I am configured for a proxy.  

My question is this, what can I add to be ON.BAT proxy to add my bypass list?  As an example, just use:
as my exception list

My batch files look like this:

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 ProxyOverride /t REG_SZ /d "<local>" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d "" /f

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

    Author Comment

    Looks like IE stores this in the registry under "ProxyOverride".  I just need to know the exact line to add to my on.bat file to add "*;192.*;100.100.1.*" as my proxy overrides.  Thanks!
    LVL 16

    Accepted Solution

    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "*;192.*;100.100.1.*;<local>" /f
    LVL 16

    Expert Comment

    or check this previous question i answered with more detail.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
    Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now