You are here: Sysadmins of the North » Windows Server » Delete saved RDP credentials from Windows 10 Credentials Manager, using cmdkey

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 %HCode language: PowerShell (powershell)

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top