command

winhttp proxy command

Command to set windows server httpwin proxy setting.

1
netsh winhttp set proxy proxy-server="http=<proxy>:<port>;https=<proxy>:<port>" bypass-list="<local>;<url>"

Powershell script to grab winhttp value

1
2
$ProxyConfig = netsh winhttp show proxy
$Proxy = (((($ProxyConfig | Out-String) -split("`n") |?{$_ -like "*Proxy Server*"}) -split(" ") -split(";")) | ?{$_ -like "http=*"}).Replace("=","://").Trim()