How to clear Remote Desktop Connections history

When we connect to a remote computer using Remote desktop application it stores the remote PC name and the login user name. And whenever we open remote desktop application again, it suggests the names of the computers that the user has previously connected to. This TS sessions history is stored per user and a user will not be able to see the connection history of other users.

How to delete Remote desktop connection history?

  • Open Registry editor (Execute Regedit from Run window)
  • Navigate to the node HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default
  • Now you can see that each computer you have connected to has an entry in this node with the names MRU0, MRU1, MRU2, MRU3….
  • Select all the MRU entries.
  • Right click and select delete from the context menu. This method works for all Windows editions i.e XP, Vista and Windows 7 and also on the server editions Server 2003 and Server 2008.

Delete Remote desktop connection history from command line

Instead of using GUI we can just run a simple command from windows command line and delete remote desktop history.  Command for this is given below

reg delete “HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default” /f

The above command can be added to a batch file and we can run the batch file whenever we want to delete remote desktop connection history.

Is there any group policy not to save the Server, username and passwords history?

There is a group policy for passwords which prevents passwords from being saved. There is no GP setting to disable user and remote servers history.

Remote desktop suggests user names when I try to connect to a computer which I used previously. How to delete this user name history in the remote desktop connections?

You can delete the user name history by deleting the registry keys under the node HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\UsernameHint

From command line you can run the below command to do the same.

reg delete “HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\UsernameHint” /f

This entry was posted in How To, Server 2008, Tips & Trick, Windows, Windows 7, Windows 7, Windows XP and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s