Delete saved RDP credentials from Windows 10 Credentials Manager, using cmdkey

If you want to quickly delete all saved Remote Desktop credentials from your Windows 10 Credentials Manager, here is how:

Execute the following command in an elevated cmd.exe terminal:

Run cmd as administrator
For /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr "target=TERMSRV"') do cmdkey /delete %H
Code language: PowerShell (powershell)
Sharing is caring
Show Buttons
Hide Buttons