In order to clear the history of all RDP connections and saved usernames, you must clean the contents of Servers registry key.In addition, the CertHash variable contains the RDP server SSL certificate thumbprint (see the article “ Configuring trusted TLS/SSL certificates for RDP”) This username will be used to connect to the RDP host automatically. It shows the username used to connect to the RDP/RDS host. Pay attention to the value of the UsernameHint parameter. Expand the reg key with the name (or ip address) of any host. It contains the list of all RDP connections that have ever been established by this user. Now expand the key HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers.To clear the history of the most recent RDP connections, select all parameters with the names of MRU0-MRU9, right-click and select Delete The name (or the IP address) of the remote desktop server is stored in the value of the MRU*. Expand the registry key HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default which contains the list of 10 IP addresses or DNS names of remote computers that have been used recently (MRU – Most Recently Used).You need two registry keys in this section: Default (stores the history of the last 10 RDP connections) and Servers (contains the list of all RDP servers and usernames used previously to login).Run the Registry Editor ( regedit.exe) and browse to the registry key HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client.You will have to manually clear some registry keys. It’s impossible to remove a computer (or computers) from the list of RDP connection history using built-in Windows tools. Information about all RDP connections is stored in the registry of each user.
How to Remove RDP Connection Cache from the Registry?