Over WinRM
(Get-PSSessionConfiguration -Name Microsoft.PowerShell).Permission
NT AUTHORITY\INTERACTIVE AccessAllowed, BUILTIN\Administrators AccessAllowed, BUILTIN\Remote Management Users AccessAllowedControl Panel -> Internet Options -> Connections -> LAN settings
"Use a proxy server for your LAN [...]" checked
(Optional) "Bypass proxy server for local addresses" checked
Advanced -> (For WinRM over HTTP, port TCP 5985) HTTP: <127.0.0.1 | HTTP_PROXY_IP> <HTTP_PROXY_PORT>
-> (For WinRM over HTTPS, port TCP 5986) Secure: <127.0.0.1 | HTTPS_PROXY_IP> <HTTPS_PROXY_PORT>
netsh winhttp import proxy source=ie
# Lists the configured proxies.
netsh winhttp dump
[...]
set proxy proxy-server="http=<HTTP_PROXY_IP>:<HTTP_PROXY_PORT>;https=<HTTPS_PROXY_IP>:<HTTPS_PROXY_PORT>" bypass-list="<local>"
# Restore the WinHTTP default proxy settings (no proxies).
netsh winhttp reset proxyCommand
Description
Last updated