If Remote Desktop keeps signing in with an old username or password, you can remove the saved RDP credentials and enter the correct details next time. On Windows, the quickest options are Credential Manager and the cmdkey command. This guide explains how to clear saved Remote Desktop credentials, remove a specific server entry, and prevent outdated sign-in information from being reused.
The steps apply mainly to the built-in Remote Desktop Connection app in Windows 10 and Windows 11. If you use a different RDP client, such as Microsoft Remote Desktop on macOS or Remmina on Linux, see the section on other clients below.
Why Clear Saved RDP Credentials?
Windows can save your username and password for a Remote Desktop connection so you do not have to enter them each time. That is convenient, but saved credentials can become a problem when your password changes, you switch accounts, or the computer connects to a server with a different sign-in method. Windows may then keep trying the old details, show a password error, or connect as the wrong user.
Removing the saved entry gives you a chance to sign in with current credentials. It can also be a sensible security step if you used Remote Desktop on a shared or work computer and no longer need that sign-in information stored there.
Method 1: Remove RDP Credentials in Credential Manager
Credential Manager is the standard Windows interface for viewing and deleting saved sign-in information. For most users, this is the simplest way to clear a saved RDP password.
- Open the Start menu and search for Credential Manager.
- Select Credential Manager from the results.
- Choose Windows Credentials. RDP entries are commonly stored here rather than under Web Credentials.
- Look for a credential named
TERMSRV/followed by the computer name or IP address. For example, it may appear asTERMSRV/office-pcorTERMSRV/192.168.1.25. - Select the matching entry to expand its details, then choose Remove.
- Confirm the removal when Windows asks.
Close Credential Manager after deleting the entry, then open Remote Desktop Connection and try again. Windows should prompt you for credentials if it does not have another saved entry for that destination.
Be sure to select the entry that matches the address you actually use. A computer saved by its host name and the same computer saved by its IP address may have separate entries. If you connect using an alias, fully qualified domain name, or alternate address, Windows may store a separate credential for each one.
Method 2: Clear an RDP Credential with Command Prompt
You can also use the built-in cmdkey utility to list and delete saved credentials. This method is useful when Credential Manager has many entries or when you want to remove a specific server credential directly.
To list saved credentials, open Command Prompt and run:
cmdkey /list
Review the output for a target that starts with TERMSRV/. The target name identifies the computer or address associated with that saved RDP credential. To delete one entry, use the exact target name shown in the list:
cmdkey /delete:TERMSRV/server-name
For example, if the listed target is TERMSRV/office-pc, run:
cmdkey /delete:TERMSRV/office-pc
You can also use an IP address if that is how the target appears in the list:
cmdkey /delete:TERMSRV/192.168.1.25
After running the command, check the result message. If the credential was not found, verify the target spelling and punctuation using cmdkey /list. The name must match the saved target; deleting an entry for a host name will not necessarily remove an entry stored under its IP address.
Method 3: Remove Saved Details from Remote Desktop Connection
The Remote Desktop Connection app can show a saved username for a destination, but removing a displayed username does not always delete the password stored in Windows. For a complete cleanup, use Credential Manager or cmdkey as described above.
- Press
Windows key + R, typemstsc, and press Enter to open Remote Desktop Connection. - Choose Show Options if the full connection window is not visible.
- Enter the computer name or IP address in the Computer field.
- If a saved username appears, select it and replace it with the account you intend to use.
- Review the option to allow credentials to be saved. Leave it unchecked if you do not want Windows to store credentials for future connections.
- Connect and enter the current password when prompted.
Depending on the Windows version and how the connection was created, the app may display a Delete option beside a saved credential prompt. If it does, you can use it to remove that saved sign-in. If the option is unavailable or the old password continues to be used, delete the matching TERMSRV entry from Credential Manager.
Clear All Saved RDP Credentials
If you want to remove every saved RDP credential, inspect the list in Credential Manager and delete each entry that begins with TERMSRV/. This is usually safer than deleting all credentials in Windows, because Credential Manager may also contain sign-in information for other applications and services.
With Command Prompt, run cmdkey /list and identify the RDP targets. Then issue a separate delete command for each target, using the exact name shown. For example:
cmdkey /delete:TERMSRV/office-pccmdkey /delete:TERMSRV/remote.example.comcmdkey /delete:TERMSRV/192.168.1.25
Avoid using broad cleanup commands or deleting unrelated Windows credentials unless you understand what they are used for. Removing a credential can sign you out of other services or cause an application to request your password again.
What to Do If Windows Still Uses the Old Password
If Remote Desktop still rejects the new password after you remove a credential, check for another saved entry or a mismatch between the address and account you are using.
- Check every version of the server address. Look for entries saved under the host name, IP address, domain name, or alias.
-
Confirm the account format. Depending on the environment, the username may need a format such as
DOMAIN\username,username@domain.com, or a local computer account format. - Check for a saved .rdp file. A connection file can store the computer name and username, even if the password is managed separately. Open the file in a text editor if you need to inspect its settings, but do not share it if it contains sensitive connection information.
- Try entering credentials manually. When prompted, choose the option to use a different account if it appears, then enter the current username and password.
- Verify the password with the administrator. Your account may be locked, expired, or required to change its password before connecting.
- Check remote access policy. Work or school devices may have policies that control saved credentials or Remote Desktop sign-in. Contact your IT administrator if settings are managed by your organization.
Restarting the Remote Desktop Connection app after deleting the entry can help ensure you are testing the updated credential. In most cases, a full Windows restart is not required.
How to Stop Windows from Saving RDP Credentials
When you connect to a computer, avoid selecting an option that saves your credentials if you do not want Windows to remember the password. The exact wording can vary by Windows version and by the connection settings provided by an organization. You can also leave the credential-saving option unchecked in Remote Desktop Connection when it is available.
For a shared computer, sign out of your Windows account when you finish and remove any RDP credentials you no longer need. On managed work devices, do not try to bypass company security settings; ask your IT department which sign-in method to use.
Clearing Credentials in Other Remote Desktop Apps
The steps above apply to Windows Credential Manager and the built-in Windows RDP client. Other applications may save connection details in their own profile or password store.
- Microsoft Remote Desktop on macOS: Open the app, locate the saved PC in the connection list, and edit or remove the stored user account or saved PC profile. Menu names can vary by app version.
- Remmina on Linux: Edit the saved connection profile and clear its password field, or remove the profile if you no longer need it. Some setups store passwords through a desktop keyring.
- Third-party RDP clients: Check the app’s connection settings, saved profiles, or password manager. Removing a Windows Credential Manager entry may not affect credentials stored only inside the third-party app.
If you are unsure where a credential is stored, check the client’s documentation before deleting broader system keychain or password-store data.
Is It Safe to Delete Saved RDP Credentials?
Deleting a saved RDP credential removes stored sign-in information for the matching target. It does not delete the remote computer, change your account password, or disable Remote Desktop. The next connection will generally require you to enter valid credentials again.
Only remove credentials from devices you own or are authorized to manage. On a shared computer, deleting an entry may affect another user if you are signed in to their Windows profile or using a shared account. If you suspect that a password has been exposed, deleting the saved copy is not enough: change the password through the appropriate account provider and follow your organization’s security process.
Conclusion
To clear RDP saved credentials in Windows, open Credential Manager, select Windows Credentials, and remove the matching TERMSRV/ entry. Alternatively, use cmdkey /list to find the saved target and cmdkey /delete:TERMSRV/server-name to remove it from Command Prompt. Check for entries stored under different names or IP addresses if Windows continues to use an old password. Once the outdated credential is gone, reconnect and enter the correct account details.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.