Key Points
This guide explains how to remove saved Remote Desktop (RDP) credentials in Windows to maintain security and prevent unauthorized access.
- Delete credentials using Credential Manager: Open Control Panel → Credential Manager → Windows Credentials, locate TERMSRV/ entries, and remove the stored RDP credentials.
- Clear saved logins via RDC interface: Launch mstsc → Show Options → General tab → Delete Credentials to erase stored login information directly from the Remote Desktop client.
- Enforce credential policies with Group Policy: Use gpedit.msc to enable Do not allow passwords to be saved under Remote Desktop Connection Client or System → Credentials Delegation to block future credential storage.
- Remove RDP history through Registry Editor: Navigate to HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client, delete relevant Servers subkeys, and clear MRU entries to erase connection history.
How to Remove Remote Desktop Connection History in Windows
In this guide, we discuss the steps on how to delete saved RDP credentials. RDP, which stands for Remote Desktop Protocol, is a powerful feature in Windows that allows users to remotely access another computer over a network. As you can imagine, it’s highly useful for hybrid workforces or any IT enterprise that needs to manage remote systems.
Nevertheless, RDP may introduce security risks if not used correctly. Managing stored credentials is crucial to prevent unauthorized access, enhance security, and resolve login issues.
Enable or disable RDP on workstations using PowerShell.
Steps to clear saved passwords in Windows Remote Desktop
We’ve listed 5 options on how to remove Remote Desktop credentials.
Option 1: Using Windows Credential Manager
Windows Credential Manager is the most user-friendly method for deleting saved RDP credentials. Follow these steps:
- Open the Control Panel and navigate to Credential Manager.
- Click on Windows Credentials to display a list of stored credentials.
- Locate the entry corresponding to your RDP connection. These credentials are usually labeled as TERMSRV/ followed by the remote computer’s name or IP address.
- Click on the credential entry to expand it, then select Remove.
- Confirm the deletion when prompted.

With this method, you will be required to enter new credentials the next time you attempt to connect to the remote machine.
Option 2: Using the Remote Desktop Connection (RDC) interface
The RDC client provides a direct way to delete saved credentials. Here’s how:
- Press Win + R, type mstsc, and press Enter to open the Remote Desktop Connection client.

- Click on Show Options at the bottom left.
- Under the General tab, locate the User name field where the saved credentials are stored.

- Click Delete Credentials (if available).
- Close and restart RDC to ensure changes take effect.
If the “Delete Credentials” button is not visible, use Credential Manager as an alternative method.
Option 3: Modifying Group Policy Settings (for IT admins)
Administrators can use Group Policy to prevent users from saving RDP credentials in Windows. This method is ideal for securing enterprise environments and enforcing credential hygiene.
- Open Group Policy Editor by pressing Win + R, typing gpedit.msc, and pressing Enter.
- Navigate to: Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Connection Client
- Locate and double-click Do not allow passwords to be saved.
- Select Enabled, then click Apply and OK.
- Run gpupdate /force or restart the system to apply changes.
By enabling this policy, users will no longer be able to save new credentials when connecting via Remote Desktop. Existing saved credentials must still be removed manually using Credential Manager or the command line.
Option 4: Clearing RDP history via Windows Registry (for advanced users)
For advanced users, the Windows Registry can be used to clear stored Remote Desktop connection history.
- Press Win + R, type regedit, and press Enter to open the Registry Editor.
- Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default
- Expand the Servers key and delete any subkey corresponding to a remote computer.
- Optionally, delete the MRU entries under the Default key to remove the list of recent connections.
- Close the Registry Editor and restart the computer.
⚠️ Caution: Editing the registry can affect system stability. Always back up the registry before making changes. Note that this process only clears connection history—it does not remove stored passwords. To delete saved credentials, use Credential Manager or the cmdkey /delete command.
Understanding saved credentials in Remote Desktop
When a user logs in to a remote desktop session and chooses to save their credentials, Windows securely stores these credentials for future use. This allows users to connect without re-entering login details. However, saved credentials are stored in locations that, if compromised, pose a security risk.
Windows primarily stores RDC credentials in two locations:
- Windows Credential Manager: This tool manages stored passwords for various Windows services, including RDC.
- Windows Registry: Advanced users may find stored RDC credentials in the registry, particularly under Terminal Services keys.
Leaving old or unused credentials stored can be a security vulnerability, especially on shared or corporate systems. Threat actors can exploit these vulnerabilities and gain access to a compromised system. As such, regularly managing and removing saved credentials is a best practice in any robust credential management strategy.
Run scripts on Windows or Mac using any custom credentials.
→ Learn more about NinjaOne’s Credential Exchange.
8 best practices for secure Remote Desktop management
The most common cyberattacks exploit weak or improperly stored credentials. That is why IT experts continue to stress the importance of enforcing strong security measures. Regular audits, password policies, and proper session management can help safeguard sensitive remote connections. Below are eight best practices to follow for secure Remote Desktop credential management:
- Remove Remote Desktop credentials regularly: Periodically clear stored RDP passwords to ensure security and prevent unauthorized access.
- Use strong, unique passwords: Always use complex passwords for RDC accounts to reduce the risk of credential theft.
- Enable multi-factor authentication (MFA): Adding MFA significantly enhances security by requiring an additional verification step.
- Audit and monitor stored credentials: Regularly review stored RDC credentials and delete Remote Desktop saved login details that are no longer needed.
- Disable automatic credential saving: Use Group Policy settings to prevent Windows from storing Remote Desktop Connection credentials automatically.
- Implement session timeout policies: Configure timeouts to automatically disconnect idle remote sessions.
- Use PowerShell for bulk credential removal: Automate Remote Desktop Connection credentials removal using PowerShell for efficiency in enterprise environments.
- Regularly update Windows and security settings: Ensure all security patches and updates are applied to minimize vulnerabilities in RDC.
Deleting saved RDP credentials
Managing stored RDC credentials is crucial for maintaining security and troubleshooting connection issues. This guide has outlined multiple methods to remove saved credentials, ranging from simple GUI-based methods to advanced registry modifications and automation through PowerShell. By following best practices, you ensure your RDC sessions remain secure and free from unauthorized access.
Quick-Start Guide
NinjaOne provides several methods to delete saved Remote Desktop credentials in Windows:
1. Script-Based Solution:
NinjaOne has a script called “Create Desktop Shortcut – RDP” that can help manage RDP shortcuts, which might indirectly assist with credential management.
2. General Windows Methods:
While not NinjaOne-specific, you can typically delete saved RDP credentials using standard Windows methods:
- Open Credential Manager in Windows
- Navigate to Windows Credentials
- Remove specific Remote Desktop connection credentials
3. Remote Registry Tool:
NinjaOne offers a Remote Registry tool that could potentially help manage such credentials, though the documentation notes some limitations when accessing user-specific registry keys.
4. Custom Scripts:
For more advanced management, NinjaOne supports custom scripts that could be created to handle credential deletion.
Recommendation: Use Windows’ built-in Credential Manager or create a custom NinjaOne script to remove saved Remote Desktop credentials. If you need a specific, standardized approach, I recommend consulting with your IT support team to develop a consistent method across your organization.
