Network and Internet Remove Computer Entries from Remote Desktop Connection in Windows 11


  • Staff
Remote_Desktop_banner.png

You can use Remote Desktop to connect to and control your PC from a remote device by using a Microsoft Remote Desktop client (available for Windows, iOS, macOS and Android). When you allow remote connections to your PC, you can use another device to connect to your PC and have access to all of your apps, files, and network resources as if you were sitting at your desk.

After you use the Remote Desktop Connection tool to connect to another computer, the name of the computer is added to the Remote Desktop Connection Computer box. It's easy for you to quickly select the same computer at a later time. However, the tool doesn't provide a way to clear the list of computers or remove one or more entries from the Computer box.

See also:

This tutorial will show you how to remove entries from the Computer box in the Remote Desktop Connection client tool for your account in Windows 10 and Windows 11.


Contents

  • Option One: Remove All Computer Entries from Remote Desktop Connection client
  • Option Two: Remove Specific Computer Entries from Remote Desktop Connection client


EXAMPLE: Computer entries in Remote Desktop Connection client

Computer_box_in_Remote_Desktop_Connection_client.png





Option One

Remove All Computer Entries from Remote Desktop Connection client


1 Click/tap on the Download button below to download the BAT file below.

Clear_all-computer_entries_in_Remote_Desktop_Connection_cliet_for_current_user.bat


(Content of BAT file for reference)
Code:
:: Clear entries from RDC Cumputer box
REG DELETE "HKCU\Software\Microsoft\Terminal Server Client" /F

:: Delete last connection history to not show in RDC Computer box
DEL /F /S /Q /A "%UserProfile%\Documents\Default.rdp"

:: Clear RDC jump list
DEL /F /S /Q /A "%AppData%\Microsoft\Windows\Recent\AutomaticDestinations\1bc392b8e104a00e.automaticDestinations-ms"

2 Save the .bat file to your desktop.

3 unblock the .bat file.

4 Double click/tap on the .bat file to run it.

5 You will now notice a command prompt quickly open and close running the commands in the BAT file to apply.

6 You can now delete the downloaded .bat file if you like.

7 The BAT file does not delete any saved credentials of remote computers. You will need to manually delete any saved credentials you want for remote desktop connections.





Option Two

Remove Specific Computer Entries from Remote Desktop Connection client


1 Open Remote Desktop Connection (mstsc.exe).

2 Select the remote computer connection (ex: "Brink-Spectre") you want to remove in the Computer drop menu, and click/tap on the delete link (if available) to delete its saved credentials. (see screenshot below)

Remove_computer_entries_from_Remote_Desktop_Connection_client-1.png

3 Click/tap on Yes to confirm deleting the saved credentials of the selected computer (ex: "Brink-Spectre"). (see screenshot below)

Remove_computer_entries_from_Remote_Desktop_Connection_client-2.png

4 Right click or press and hold on the Remote Desktop Connection icon on the taskbar, and unpin (if pinned) the computer (ex: "Brink-Spectre") you want to remove from the jump list. (see screenshot below)

Remove_computer_entries_from_Remote_Desktop_Connection_client-3.png

5 Right click or press and hold on the Remote Desktop Connection icon on the taskbar, right click or press and hold on the computer (ex: "Brink-Spectre") you want to remove from the jump list, and click/tap on Remove from this list. (see screenshot below)

Remove_computer_entries_from_Remote_Desktop_Connection_client-4.png

6 Close the Remote Desktop Connection client.

7 Open Registry Editor (regedit.exe).

8 Navigate to the key below in the left pane of Registry Editor. (see screenshot below step 9)

HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default

9 In the right pane of the Default key, right click on the MRU# string value (REG_SZ) for the computer (ex: "Brink-Spectre") you want to remove from RDC, and click/tap on Delete. (see screenshot below)

Remove_computer_entries_from_Remote_Desktop_Connection_client-5.png

10 Click/tap on Yes to confirm deleting the string value (REG_SZ). (see screenshot below)

Remove_computer_entries_from_Remote_Desktop_Connection_client-6.png

11 Navigate to the key below in the left pane of Registry Editor. (see screenshot below step 9)

HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers

12 In the left pane under the Servers key, right click on the subkey with the same name as the computer (ex: "Brink-Spectre") you want to remove from RDC, and click/tap on Delete. (see screenshot below)

Remove_computer_entries_from_Remote_Desktop_Connection_client-7.png

13 Click/tap on Yes to confirm deleting the key. (see screenshot below)

Remove_computer_entries_from_Remote_Desktop_Connection_client-8.png

14 You can now close Registry Editor.

15 Open a command prompt.

16 Copy and paste the command below into the command prompt, and press Enter. (see screenshot below)

This command will delete the last connection history so it will not continue to show in the RDC Computer box.


DEL /F /S /Q /A "%UserProfile%\Documents\Default.rdp"

Remove_computer_entries_from_Remote_Desktop_Connection_client-10.png

17 You can now close the command prompt.


That's it,
Shawn Brink

 

Attachments

  • Remote_Desktop.png
    Remote_Desktop.png
    20.2 KB · Views: 32
  • Clear_all-computer_entries_in_Remote_Desktop_Connection_cliet_for_current_user.bat
    555 bytes · Views: 49
Last edited:
Top Bottom