I bought a proxy that passes through the firewall. It is troublesome to manually set the proxy in windows. Finally, I tried powershell constantly and finally succeeded.
In fact, using powershell to set the IE proxy is to change the registry, first paste the code: $ enableproxy = Get-itemproperty-path "hkcu: \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings "-name proxyenable
If ($ enableproxy. proxyenable-EQ 1)
{
Write-host "ie proxy is disabled"
Set-itemproperty-path "hkcu: \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings"-name "proxyenable"-value 0
Set-itemproperty-path "hkcu: \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings"-name "autoconfigurl"-value ""
}
Else
{
Write-host "ie proxy is enabled"
Set-itemproperty-path "hkcu: \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings"-name "proxyenable"-value 1
# Proxy method 1: automatically configure scripts and
Set-itemproperty-path "hkcu: \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings"-name "autoconfigurl"-value "http: // 121.199.52.48: 3389/sample/111.pac"
# Proxy Method 2: Set Proxy Server
# Set-itemproperty-path "hkcu: \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings"-name "proxyserver"-value "192.168.75.80: 808"
}
Sleep 3 attributes of IE in the registry can be edited in total: