Learn how to a build a cloud-first strategyRegister Now


Internet explorer proxy changes via registry via batch file

Posted on 2005-04-21
Medium Priority
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 "atlproxy.test.com:8080" /f

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

Author Comment

ID: 13838139
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 "*.test.com;192.*;100.100.1.*" as my proxy overrides.  Thanks!
LVL 16

Accepted Solution

craylord earned 1000 total points
ID: 13838213
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "*.test.com;192.*;100.100.1.*;<local>" /f
LVL 16

Expert Comment

ID: 13838266
or check this previous question i answered with more detail.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month21 days, 5 hours left to enroll

810 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