Windows set proxy

Last updated:

set proxy myproxy
set proxy myproxy:80 "<local>bar"
netsh winhttp set proxy proxy-server="http=myproxy;https=sproxy:88" bypass-list="*.contoso.com"

# Remove proxy
netsh winhttp reset proxy

references:

Netsh Commands for Windows Hypertext Transfer Protocol (WINHTTP) | Microsoft Learn