删除windows凭据管理器
脚本
@echo off
cmdkey.exe /list > "%TEMP%\List.txt"
findstr.exe 目标 "%TEMP%\List.txt" > "%TEMP%\tokensonly.txt"
FOR /F "tokens=1,2 delims= " %%G IN (%TEMP%\tokensonly.txt) DO cmdkey.exe /delete:%%H
del "%TEMP%\List.txt" /s /f /q
del "%TEMP%\tokensonly.txt" /s /f /q
echo All done
pause
一行命令
for /f "tokens=1*" %a in ('cmdkey /list^|find "目标:"') do cmdkey /delete "%b"
rem 删除adobe
for /f "tokens=1*" %a in ('cmdkey /list^|find /i "adobe"') do cmdkey /delete "%b"