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

Hi! Join the discussion, leave a reply!

Loading time: 103 queries, 0.301 seconds using 13519592 bytes memory. Peak memory usage: 13919320 bytes.