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_USERSoftwareMicrosoftTerminal Server ClientDefault
- 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_USERSoftwareMicrosoftTerminal Server ClientDefault" /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_USERSoftwareMicrosoftTerminal Server ClientUsernameHint
From command line you can run the below command to do the same.
reg delete "HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientUsernameHint" /f
If you have any more questions related to remote desktop, check out Remote desktop and Terminal Services FAQ
Is there any way to disable remote desktop history? or atleast a way to automatically delete it once I close the TS connection?
AFAIK, There's no such automatic way of deleting rdp history..You may create a batch file with the reg command to delete the history..
i try to do but it still the same and cant not clear the section.How can i try more to complete this task.please help me. my E mail : [email protected] if you have answer.
What's the error you got when you tried to delete the MRU entries in the registry?
it works
There is no UsernameHint entry in my registry, but I still have hints to delete. Are they stored anywhere else? Windows 7 Pro
Thank u,
reg delete “HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientDefault” /f
this key is working ;
but the last entry is existing there.
how can remove it completely ?
your suggested procedure is working excellent
thanks & Regard
Weird question, but what would it take to *restore* the history if it were blanked out? More specifically, are the RDP registry keys stored as part of the NTUSER.DAT file, or are the registry keys part of a separate file?
its working
Your solution is very good.
Thanks & Regards