Show and set the WinHTTP proxy on Windows

Inspect the machine-level proxy with netsh winhttp show proxy and change it with set or reset.

WindowsnetworkproxysettingsMedium risk
Run `netsh winhttp show proxy` to see the current WinHTTP proxy, and `netsh winhttp set proxy proxy-server="http=代理地址:端口"` to set one.

01Command

Command
$ netsh winhttp show proxy

02What it does

WinHTTP is the proxy that system services and many CLI tools use; it is separate from the per-user proxy in Settings. `netsh winhttp show proxy` reveals whether a proxy is configured and what it points to. Companies often set this on managed machines, and leftover values can silently break downloads and updates.

03Risk

RiskMedium risk
RequirementsSetting or resetting the proxy requires an administrator terminal.
!Warning: Setting a wrong proxy breaks system downloads. Undo with `netsh winhttp reset proxy`, which returns to direct access. Run set/reset in an administrator terminal.

04Undo

Undo
$ netsh winhttp reset proxy

05Sources

  • netsh
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents netsh WLAN commands including `netsh wlan show profile name=... key=clear` and `netsh wlan delete profile name=...`.
  • Netsh commands - Windows CMD
    SS64 · technical · 2026-09-17
    Evidence: Reference for netsh context commands such as wlan delete profile and winhttp proxy.

Last verified: 2026-09-18 · Category: Network

06Related solutions