How to Remove RDP Connection Cache from the Registry?

How to Remove RDP Connection Cache from the Registry?

RDP Cache

Remote Desktop Protocol is a proprietary protocol developed by Microsoft which provides a user

with a graphical interface to connect to another computer over a network connection. The user

employs RDP client software for this purpose, while the other computer must run RDP server


For every successful connection, the RDP client stores the connection details for the machine that

you have connected to. This is often convenient, but if you are on a public machine, it can expose

sensitive security details. The RDP client does not give any way to clear the cached connection


Clear the RDP Cache from the registry using RegEdit

To clear cache in RDP, Run the Registry Editor (regedit.exe) and browse to the registry key

\Microsoft\Terminal Server Client;

There are two registry keys here that need to be cleared:

      • Default – Has the history of the last 10 RDP Connections.
      • Servers – This contains a list of all the Remote Desktop connections that have ever been established from this machine.
    • Expand the Default Key which will contain the most recently used connections. You can delete every entry or select which ones you want to remove
    • ★ Select the entries that you want to remove, right-click and click delete
    • Now expand the Servers key, this contains the details of all the RDP connections that have ever been made from this machine, including the username used to connect
    • ★  There may be many entries, it is easier to delete the entire server’s key, than recreate it.
    • ★  Finally, delete the default.rdp file found in your homepath. This is a hidden file and will not show or delete by default. You have to supply an extra switch to the delete command
    • Use command: del /ah %homepath%\documents\default.rdp
    • ★  Windows also save the recent Remote Desktop connections in Jump Lists. If you type (mstsc) in the
    • Windows 10 search box, the previously used RDP connections will appear in the list. You can completely
    • disable Windows 10 recent file and location in Jump list with the registry dword
    • parameter Start_TrackDocs in the reg key
    • (et it to 0), or you can clear the Recent Items lists by deleting files in the directory
    • %AppData%\Microsoft\Windows\Recent\AutomaticDestinations


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published.