Rdp Registry Settings Windows 10



  • The Microsoft Security Response Center is part of the defender community and on the front line of security response evolution. For over twenty years, we have been engaged with security researchers working to protect customers and the broader ecosystem.
  • The instructions in this article apply to: The 64-bit version of Windows Server 2008 R2 and later Windows Server operating systems. For information about running a 32-bit operating system in Azure, see Support for 32-bit operating systems in Azure VMs.

Have you ever encountered a problem where the Remote Desktop session randomly freezes on Windows 10? Reportedly, this issue can be attributed to using the UDP protocol instead of TCP.

Rdp Registry Settings Windows 10

In Windows, you can save the settings of a selected Remote Desktop connection to an RDP as a backup. You will then be able to open the saved RDP file on demand to quickly connect remotely to the computer using the same settings from when the RDP file was saved.

Given that there has been no official fix for this problem, there’s no guarantee that switching to TCP will fully prevent RDP from freezing. However, there is no harm in trying.

Here are three methods that may help you unfreeze RDP on Windows 10.

Warning: exercise caution when modifying the Windows Registry. Do not change any registry keys unless instructed to do so. Incorrectly editing the registry may cause system-wide problems that will require performing a clean reinstall of the OS.

Fix RDP freezing via Command Prompt

  1. Run Command Prompt as administrator on the client machine.
  2. Run the following command: reg add “HKLMsoftwarepoliciesmicrosoftwindows ntTerminal ServicesClient” /v fClientDisableUDP /d 1 /t REG_DWORD
  3. Restart the client machine.
Rdp Registry Settings Windows 10


Looking for an easy way to connect to Windows computers remotely? FixMe.IT is the world’s most reliable and cost-effective remote desktop solution that allows connecting to any remote PC in just 3 easy steps.
Here’s how it works.

Fix RDP freezing via Registry Editor

  1. On the client machine, press Win+R to open the Run box. Type in regedit and click OK.
  2. Navigate to HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsNTTerminal ServicesClient.
  3. Right-click the Client folder and select New > DWORD (32-bit) value.
  4. Name the new DWORD as fClientDisableUDP. Set the Value data to 1, Base to Decimal.
  5. Reboot the client machine.

Fix RDP freezing via Group Policy Editor

How to Clear RDP Connections History in Windows 10
  1. Press Win+R to open the Run box. Run gpedit.msc.
  2. Navigate to Computer Configuration > Administrative templates > Windows components > Remote Desktop Services > Remote Desktop Connection client.
  3. Enable the Turn off UDP on client setting.

Did you find this article helpful? See more Windows tips & tricks on our blog and join us on Facebook, Twitter or LinkedIn to get all the latest updates as they happen.

Related Posts

RDP (Remote Desktop Protocol) is the important settings of Windows 10, as this allows the user to remotely take control of any computer on the network. This software is included with several versions of Windows, including 2000, XP, Vista, 7, 8, 8.1 and 10. When the user connects to the Remote desktop server, then your connection history is saved so there is no need to remember the name or IP of the remote computer. This is also convenient to the consumer’s viewpoint, but also unsafe from the security point, especially when the RDP connection is instigated from a public or untrusted computer. The information about terminal sessions is stored individually to the computer. So as per privacy and security, you need to remove RDP history.

In this article, we are discussing how to remove Remote Desktop Connection Windows 10.

How to Clear RDP Cache in Windows 10

There are three ways to clear Remote Desktop history in Windows 10. Here check out the three ways one by one:

1. How to Remove RDP Connections Cache from the Registry

For deleting Windows 10 Remote Desktop Connections history, you need to manipulate the registry entries.

Note:Manipulating registry entries is very risky as well as difficult as making a small mistake can adversely affect the entire system. So be careful while editing registry entries and create a System Restore point first. Or make use of the Registry Repair Toolas this will automatically fix the registry issues.

How To Run PowerShell Commands On Remote Computers

  • Press Windows + R and then put regedit in the Run dialog box to open Registry Editor. Now click OK.
  • Next, in the left Window of Registry Editor, move to following registry key:

HKEY_CURRENT_USERSoftwareMicrosoftTerminal Server ClientDefault

  • In the right windows of this location, navigate for the registry string named MRUnumber where the number may be 0, 1, 2…. You need to right-click on this string > select Delete.
  • Next close Registry Editor and restart your PC.

After restarting your system, you’ll realize that recent Remote Desktop Connections history is no longer visible under Start Menu.

Helpful Article: Fix: Windows 10 Remote Desktop Protocol (RDP) Not Working Properly Issue

Remote Desktop Connection Registry

How to clear the RDP connection history using a script

After deleting the RDP connections cache manually from the registry, here check the steps to clear remote desktop history using a script. It offers a small script (BAT file) that allows you to automatically remove RDP history.

For automating the RDP history cleanup, put the below-given script in the startup or deploy it to computers by making use of the group policy.

Please Note: Sometimes, the documents folder can be moved from standard directory c:users%username%documents (for instance, on another partition due to lack of space on system drive). So in this case, you need to change the path to the directory or manually locate the file Default.rdp!

Have a look at all the actions of the script:

  • Stop the information output of the console
  • Remove entire values in the registry key HKCUSoftwareMicrosoftTerminal Server ClientDefault (clear list of recent RDP connections)
  • Remove entire contents from HKCUSoftwareMicrosoftTerminal Server ClientServers (clears the saved usernames and RDP connection history)
  • And rebuild the earlier deleted registry key
  • Then go to the directory with Default.rdp file
  • Modify Default.rdp file attributes, it is by default Hidden and System
  • Delete Default.rdp file
Rdp

Additionally, clear the history of RDP connections by making use of the following PowerShell script:

Get-ChildItem “HKCU:SoftwareMicrosoftTerminal Server Client” -Recurse | Remove-ItemProperty -Name UsernameHint -Ea 0
Remove-Item -Path ‘HKCU:SoftwareMicrosoftTerminal Server Clientservers’ -Recurse 2>&1 | Out-Null
Remove-ItemProperty -Path ‘HKCU:SoftwareMicrosoftTerminal Server ClientDefault’ ‘MR*’ 2>&1 | Out-Null
$docs = [environment]::getfolderpath(“mydocuments”) + ‘Default.rdp’
remove-item $docs -Force 2>&1 | Out-Null

Please Note: The feature of the RDP history cleanup are built into various system and registry “cleaners”, like CCleaner etc.

If in case you desire to completely disable history of remote desktop, then try preventing everyone from writing these registry keys, (you should understand this is an unsupported configuration)

3. Clearing Cached RDP Credentials

If while establishing new remote RDP connections, before typing the password, you check an option Remember Me, and then the username and password will be saved in system Credential Manager. And when the next time you connect to the same computer, the RDP client automatically uses previously saved the password for remote desktop authorization.

The password is removed directly from client’s mstsc.exe window > choose a same connection from the connections list > click on Delete button. After that confirm saved credentials for deletion.

On the other hand, delete saved password directly from Windows Credential Manager and go to Control PanelUser AccountsCredential Manager section. Choose Manage Windows Credentials in the list of saved passwords locate the computer name (in following format TERMSRV/192.168.1.100). And after expand found item > click Remove button

Then in a domain environment, disable saving passwords for RDP connections by utilizing special policy Network access: Do not allow storage of passwords and credentials for network authentication.

So, these are ways that help you to clear remote desktop history.

Conclusion: Hope that by manipulating registry entries you can clear the RDP history in Windows 10. You can also make use of the Registry Repair Tool to avoid any other damages to the PC as taking these steps manually is risky or you can go for automatic tool.


Rdp Registry Settings Windows 10
How to Clear RDP Connections History in Windows 10
How to Clear RDP Connections History in Windows 10
Description
RDP is the important settings of Windows 10, as this allows the user to remotely take control of any computer on the network, but for the privacy and security you require removing RDP history, so here check out clear Remote Desktop history in Windows 10
Author
Fix Windows Errors

Enable Or Disable Remote Desktop Connections To Windows 10 PC ...

Publisher Logo