Place exceptions in the proxy by batch

Asked

Viewed 1,177 times

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 am using this command to activate the proxy on some of my machines, only it does not configure the exceptions so it does not fail to have a manual work!

I would like to add some command to place exceptions!

1 answer

2


Exceptions are in the item ProxyOverride which is a REG_SZ containing a semicolon-separated list of domains (;).

You can add so:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.