Using command line to enable proxy

717 Views Asked by At

I'd like to use command line or Powershell to enable "Use setup script" and set the "Script address". Here's the picture: Enable automatic proxy setup Picture , or enable "Use a proxy server" and set "Address". Here's the picture: Enable manual proxy setup picture

I tried the commands below, but the proxy doesn't enable. The proxy server shows off, as shows here: Fail to enable proxy setup

netsh winhttp set proxy IP-address "10.0.0.6:8080"
netsh winhttp set proxy proxy-server="10.0.0.6:8080" bypass-list = "*.***.com"
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d 10.1.1.1:3128 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f

Questions: I'd like to enable proxy setup using command line or Powershell. Does anyone have the idea?

If there is something confused, I'd like to explain more.

Thanks.

0

There are 0 best solutions below