
Use command: del /ah %homepath%\documents\default.Adversaries may abuse components of Terminal Services to enable persistent access to systems. You have to supply an extra switch to the delete command: This is a hidden file and will not show or delete by default.

Select the entries that you want to remove, right click and click delete:.You can delete every entry or select which ones you want to remove: Expand the Default Key which will contain the most recently used connections.Servers – Contains a list of all the Remote Desktop connections that have ever been established from this machine.Default – Has the history of the last 10 RDP Connections.There are two registry keys here that need to be cleared:.HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client Clear the RDP Cache from the registry using regeditĬlear the RDP Cache from the registry using regedit.

You can clear the RDP Cache history in a couple of ways: The RDP client does not give any way to clear the cached connection history. This is often convenient, but if you are on a public machine, it can expose sensitive security details.

For every successful connection, the RDP client stores the connection details for the machine that you have connected to.
