CEO (@ticks)Windows终端自动配置代理 中发帖

水个贴,分享下自己在用的自动设置 windows 终端 powershell 代理的启动脚本,内容写入 C:\Users\$user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 文件中即可,记得替换 $user 为自己用户名。 
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$regPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"

$proxyEnable = Get-ItemProperty -Path $regPath -Name ProxyEnable -ErrorAction SilentlyContinue
$proxyServer =...