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)

Jan Reilink

Hi, my name is Jan. I am not a hacker, coder, developer or guru. I am merely an application manager / systems administrator, doing my daily thing at Embrace - The Human Cloud. In the past I worked for clidn and Vevida. With over 20 years of experience, my specialties include Windows Server, IIS, Linux (CentOS, Debian), security, PHP, websites & optimization. I blog at