Windows Remote Desktop connection history

We have done lots of research on how to remove remote desktop connection history and finally got a solution. We are sharing this solution with all of you here. Please follow the following steps.

Before directly going to the solution, we should know all about remote desktop history list first, let’s know. The Remote desktop connection saves the remote computer’s names or IPs to their history ones we connect to a remote computer successfully. If we can’t connect the remote computer, then it won’t store the remote computer detail into the history. On the next time we open up RDP, it offers the stored remote computer’s names, or IPs address to click on them to connect without putting the remote computer detail. This history stored individually for all the users on a computer. Means, other users can’t view this history or can’t use the saved settings too.

Sometimes this saved list can go long if you connect different-different remote computers frequently. As it goes long list, we have to purge it as per our requirements. We have looked into the RDP client settings to clear the history but did not found such options to remove the remote computer names or IPs entries. Even though, it doesn’t remove when we put over the mouse pointer to an IP and then press the delete button. This trick did work on deleting URL in browsers but didn’t work in this. So eventually, the question is rising how to clear the history of remote desktop cConnection. Another question also raised in my mind is how to remove the selected IPs from RDP history partially.


We have done lots of research on this topic and finally got the solution. We are sharing this solution with all of you here.

Solution:

The solution is: There is a Windows Registry Key (Terminal Server Client) where is the RDP history stores. We have to remove the stored computer names or IPs from the Windows Registry. You can delete them partially as well. Removing the IPs from Windows Registry is not too difficult. We are going to share with you the step by step guide how you can delete the history list in Remote Desktop Connection. Please follow the following steps.

Steps:

The below-given steps are for all Windows 10, 8, 8.1, 7, Vista, Servers, etc.

Step 1: Remove MRU’s Value data from the following Registry path. See the screenshot below.

  1. Press Windows key + R key together to open up the run box.
  2. Type regedit in the run box and then click on OK.
  3. Navigate the following key from left-side pane: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default\. Click on Default.
  4. On the right-side pane, remove all the value data (entries) which contains “MRU” + numbers. As given in the screenshot below.

    Remove remote desktop IP entries

Step 2: Remove the server name or IPs Key from following path. See the screenshot below.

  1. Press Windows key + R key together to open up the run box.
  2. Type regedit in the run box and then click on OK.
  3. Navigate the following key on left-side pane: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers\. Click on Default.
  4. On the left-side pane, remove all the keys (entries) under \server\ which contains remote computer name & IPs, as given in the below screenshot below.

    Remote desktop remove IP settings

Where is the Remote Desktop Connection History Location:

RDP history located in the Windows registry, so please follow the following keys.

“HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default\”

“KEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers\”

When you use the Remote Desktop Connection Tool in Windows to make a connection to another computer, the name of the computer to which you connected is added to the Remote Desktop Connection Computer box. It is done to make things easy for you. The next time you want to connect, you can easily select the computer. Over time, the list of such entries may increase, and you may want to delete them. The Windows Remote Desktop Connection Tool does not offer any way to delete or remove this history list.

Remote Desktop Connection Clear History

If you wish to delete them, you will either have to use the Windows Registry, a free tool, and few more tools that work.

  1. Use Registry
  2. Run Script to delete the history
  3. Delete from Windows Credential Manager
  4. Delete the Default.RDP file
  5. Use Free tool
  6. Remove from Mac
  7. Use FixIt

You will need admin privilege to get this done.

1] Use Registry

If you want to manually delete the entries from the Remote Desktop Connection Computer box in the Windows Remote Desktop Connection client, type regedit and hit Enter to open the Registry Editor.

Navigate to the following key:

HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default

The entries will appear as MRUnumber, and are visible in the right pane. Right-click the entry and select Delete.

2] Run Script to delete the history

You can also save the below commands in a script file and then execute it. It will remove all traces of any connection made from history.

@echo off reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" cd %userprofile%\documents\ attrib Default.rdp -s -h del Default.rdp

Once done, make sure to uncheck the box which asks you to remember the password and details.

3] Delete from Windows Credential Manager

  • Open Windows Search using Win + S, and type Credential Manager. Once it appears in the list, open it.
  • Switch top Windows Credentials
  • Next, you will need to search with the name or IP address you connect on RDP
  • Then click on the Remove link to remove it from the list.

4] Delete the Default.RDP file

It is available in the Documents folder and is a hidden file. First, disable hidden view from the File Explorer menu, and then delete the file. This will remove any latest info on the latest RDP session.

5] Use Free tool

A freeware called Remote Desktop History AutoCleaner also lets you do the same. It is available here.

Remote Desktop History AutoCleaner monitors every Remote Desktop connection and cleans connection history. It works in the background and is lightweight.

6] Remove entries in the Mac Remote Desktop Connection client

To remove entries from the Remote Desktop Connection Computer box in the Mac Remote Desktop Connection client, delete this file:

  • Press Command key and space bar to bring the finder
  • Go to Users:Username:Library:Preferences:Microsoft:RDC Client:Recent Servers
  • Delete the file

7] Use FixIt

Alternatively, you could download and use Microsoft Fix it 50690 to remove history entries from Remote Desktop Connection Computer automatically. [UPDATE: Microsoft Easy Fix solutions are no longer supported]

Can someone access my Remote Desktop Connection without my knowledge?

Yes, they can but only when they access your account. One user cannot access RDP details from another account and not even an admin account.

How do I disable Remote Access to my PC?

Open Windows Search (Win + S), and type Remote Desktop Settings. Then toggle off the Remote desktop option.

If you want to disable Remote Desktop for another user, click on Remote Desktop users, and then remove the username from the account.

How do I recover my remote desktop password?

The RDP file is a configuration file that also stores your password.  You can use the NirSoft Remote Desktop Pass View to view the password.

Hope this helps!

Read next: How to Change RDP Listening Port in Windows 11/10.

Video liên quan

Chủ đề