查看存储的凭据
窗口命令:rundll32.exe keymgr.dll,KRShowKeyMgr
命令行:cmdkey /list
清除凭据
cmdkey /list | ForEach-Object{
if($_ -like "*TERMSRV*" )
{
$target = ($_ -replace "目标:","").Trim()
# echo $target
cmdkey /del:($target)
# cmdkey /del:($_ -replace " ","" -replace "Target:","")
Write-Host "重启电脑后生效"
}
}