# 检查代理
netsh winhttp show proxy
以管理员身份运行 powershell
Start-Process powershell -Verb runAs
设置 proxy
netsh winhttp set proxy "127.0.0.1:7890"
测试连接
iwr -Uri https://www.google.com
# or
iwr -Uri https://www.google.com | Select-Object -Property StatusCode
关闭 proxy (管理员下)
netsh winhttp reset proxy