Put exceptions in the proxy by batch

0
@echo off

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 172.16.7.200:3128 /f
pause

I'm using this command to activate the proxy on some of my machines, but it does not configure the exceptions so it does not stop having manual work!

I would like to add some command to put the exceptions!

    
asked by anonymous 23.01.2015 / 16:23

1 answer

2

The exceptions are in the ProxyOverride item which is a REG_SZ containing a list of domains separated by a semicolon (;).

You can add like this:

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "google.com;yahoo.com;bing.com" /f
    
23.01.2015 / 17:24