在吾爱破解上看到他人分享,记录一下这个指令

$WiFiProfiles=netsh wlan show profile|where{ $_ -match "文件"}
for($i=0;$i -lt $WiFiProfiles.Count;$i++)
{netsh wlan show profile name=($WiFiProfiles[$i] -replace "    所有用户配置文件 : ","") key=clear|where{ $_ -match "    名称|关键内容"}}

  按住 shift 并右键桌面,点击 “在此处打开Powshell窗口” ,输入指令即可。