Tuesday 4 December 2018

Set browser Proxy Script via command prompt

Proxy script is a way to define different Proxies for multiple URL's. In normal cases, you can only define a single proxy in the browser, from where you want the browser traffic to be routed. However, this method fails when you want to use multiple proxies (for some URLs) and no-proxy for other URLs. Hence, PROXY script is helpful in such scenarios.


The below commands can be used to set proxy script in browser for windows.



Via powershell command


Set-ItemProperty -Path 'HKLM:Software\Microsoft\CurrentVersion\Internet Settings' -Name AutoConfigURL -Value 'C:\proxyscript.pac' 


Via windows command prompt


REG ADD "HKLM:Software\Microsoft\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "C:\proxyscript.pac" /f


Note: you can use the URL of the proxy script(if you have) in the above commands instead of local path.

No comments:

Post a Comment