Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » Prevent Windows from Saving RDP Connection History
  • PowerShell 1
    How to upgrade PowerShell to the latest version on macOS via Homebrew Mac
  • sdf
    What is GPO and how can it be launched in Windows Windows Server
  • Azure logo
    Microsoft Azure Active Directory: How to setup Azure AD Tenant AWS/Azure/OpenShift
  • How to download install and use Kitty SSH Client on Windows
    Video on how to Download and Use KiTTY SSH Client on Windows Network | Monitoring
  • how to Configure Autologin for a VM in VMware Workstation
    Configure Autologin for a VM in VMware Workstation Virtualization
  • SASS in VsCode
    How to Install SASS on VsCode Scripts
  • Azure Local New Policy fix
    How to Resolve New WDAC Policy Issues in Azure Stack Virtualization
  • SQL EvaluationExpired
    Windows could not start the SQL Server service on local computer 17051: A network-related or instance-specific error occurred while establishing a connection to SQL Server Oracle/MSSQL/MySQL

Prevent Windows from Saving RDP Connection History

Posted on 08/06/202324/10/2024 Christian By Christian No Comments on Prevent Windows from Saving RDP Connection History
Prevent Windows from Saving RDP Connection

In this article, I will show you how to Prevent Windows from Saving RDP Connection History. Please see how to Get lists of installed Microsoft Windows Updates, How to remove saved RDP connections in Windows, and how to view and remove Remote Desktop connection history. Remote Desktop Client enables you to log on to any remote devices and access as though you were connected to the console of the remote computer. Here is how to fix this computer is a domain controller: The snap-in cannot be used on a domain controller.

When you use Remote Desktop Protocol (RDP) Connection, it always saves the connection information. This includes the IP Address and User name. The next time you want to connect, you don’t have to enter the information again and can easily connect to the PC.

It’s important to note that preventing Windows from saving RDP connection history is just one aspect of overall security. It should be complemented by other security measures, Such as network segmentation, firewall rules, regular security updates etc to maintain secure remote access.

It’s also worth noting that the specific steps to disable RDP connection history may vary depending on the Windows version you are using.

Also, see Check if Windows Updates were installed on your device via the Registry Editor. Here is how to fix Azure AD Connect Permission issue: Error 8344 insufficient access rights to perform the operation, and

Reasons to Prevent Windows from Saving Remote Desktop Connection History?

Preventing Windows from saving RDP connection history can result in a security measure. It will help to protect sensitive information and enhance privacy within your organisation. Below are some reasons why you would disable the saving of RDP connection history.

  1. Confidentiality: RDP connection history may contain sensitive information such as IP addresses, usernames, or server names. By preventing Windows from saving this history, you reduce the risk of unauthorized access or exposure to this information.
  2. Privacy: Clearing RDP connection history helps maintain privacy by removing any trace of previously established remote connections. This is useful if different users access the same system. Also, it can also help prevent others from knowing which systems you have connected to.
  3. Compliance and Regulations: There could be regulatory requirements or security policies that mandate the prevention of storing connection history. Compliance measures ensure that sensitive information is not retained, reducing potential risks, and attack surface.
  4. Preventing Unauthorized Access: If an unauthorized user gains access to your Windows system. They may be able to view the RDP connection history to identify previously accessed systems. By disabling the RDP Connection History, you will be hardening the system and making it more difficult (challenging) for an attacker to perform reconnaissance. That is, gather information for potential exploitation.

Please see how to allow saved credentials for RDP connection, and How to Resolve Microsoft RDP Connection Black Screen. Also, see how to fix RDP Users are unable to change Passwords, and how to connect Watchguard XTM via Web UI.

RDP Connection on Windows

To further reinterate, in workstations and domains environments, every successful connection to a remote computer using the RDP (Remote Desktop) client in Windows (mstsc.exe).

The system will save the remote computer name (or an IP address) and the username used to log on by default. Upon launching the RDP client, it offers the user the opportunity to select one of the connections that were used previously. The user can select the name or IP of the remote RDP server from the list.

This is convenient from the end-user perspective, but unsafe from the security point of view, especially when the RDP connection is initiated from a public or untrusted computer.

Note: All RDP sessions is stored individually in the registry hive of each user, i.e. a non-admin won’t be able to view the RDP connection history of another user.

Please see How to protect Remote Desktop credentials with Windows Defender Remote Credential Guard or Restricted Admin Mode, and how to add and modify the Windows Registry from the Command Prompt.

Prevent Saving RDP Connection on Windows

To achieve this goal, you must deny writing to the registry key HKCU\Software\Microsoft\Terminal Server Client for all user accounts. When this is configured, mstsc.exe wouldn’t be able to write RDP connection info to the registry.

Launch the Windows Registry Editor via the Windows Search or via the Run dialogbox. Type “RegEdit” and run it.

Launch Windows Research

Navigate to the following path below. Then right Click on the Terminal Server Client, and select Permission

HKCU\Software\Microsoft\Terminal Server Client
Terminal-server-client-registry

Please see how to fix Can’t connect via RDP upon installing Norton 360. Also, see how to change the default RDP port in Windows, and how to administer Cisco ASA using Command Line Interface.

Deny writing to the Registry

If you do NOT want Windows to save the RDP connection history. You must deny writing to the registry for all user accounts. As you can see from the image, this is currently enabled for all users. This will be denied very shortly for the following users.

permission-for-terminal-server-client

Disable the permission inheritance

Proceed to disable the permission inheritance on the specified reg key (Permissions|Advanced|Disable inheritance). Please see this related costs: How to create and access a hidden share folder on Windows devices.

Click on disable inheritance as shown below, and click on OK.
disable-inheritance

Here is how to add Registry keys via DISM in Windows, and how to Get, Edit, Create and Delete Registry Keys via PowerShell in Windows.

Deny All User Accounts

Now deny writing to the registry key HKCU\Software\Microsoft\Terminal Server Client for all user accounts. It is worth mentioning that is a tweak and unsupported configuration.

deny-writing-to-windows-registry

When this is done. The Remote Desktop Connection Client will not be able to save the Remote Desktop Connection history going forward. Here is an exciting article on how to View RDP Configuration Settings: Connect automatically on an RDP session.

I hope you found this blog post helpful on how to Prevent Windows from Saving RDP Connection History. Please let me know in the comment section if you have any questions.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows, Windows Server Tags:Microsoft Windows, RDP, Remote Access, Remote Desktop, remote desktop app, Remote Desktop Connection, Windows 10, Windows Server 2016

Post navigation

Previous Post: Relating Due Diligence and Due Care to Veeam Backup and Replication
Next Post: How to Compact Virtual Hard Disks on VMware

Related Posts

  • Screenshot 2020 08 07 at 21.09.01
    Error 0x204: Unable to Connect to Remote PC [Part 2] Windows
  • print driver
    How to update Printer Drivers on your Windows device Windows
  • ddf
    How to configure Windows Deployment Services on Windows Server Windows Server
  • fress install windows server 2025   downgrade of Windows Server datacenter to standard edition
    Convert Windows Server Datacenter to Standard: Install Windows Server via iDRAC Virtual Media Windows Server
  • Featured image batch rename
    Batch rename multiple files on Windows Windows
  • Smartscreen defender blocking application
    Unable to run downloaded Programs due to Defender SmartScreen Windows

More Related Articles

Screenshot 2020 08 07 at 21.09.01 Error 0x204: Unable to Connect to Remote PC [Part 2] Windows
print driver How to update Printer Drivers on your Windows device Windows
ddf How to configure Windows Deployment Services on Windows Server Windows Server
fress install windows server 2025   downgrade of Windows Server datacenter to standard edition Convert Windows Server Datacenter to Standard: Install Windows Server via iDRAC Virtual Media Windows Server
Featured image batch rename Batch rename multiple files on Windows Windows
Smartscreen defender blocking application Unable to run downloaded Programs due to Defender SmartScreen Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • PowerShell 1
    How to upgrade PowerShell to the latest version on macOS via Homebrew Mac
  • sdf
    What is GPO and how can it be launched in Windows Windows Server
  • Azure logo
    Microsoft Azure Active Directory: How to setup Azure AD Tenant AWS/Azure/OpenShift
  • How to download install and use Kitty SSH Client on Windows
    Video on how to Download and Use KiTTY SSH Client on Windows Network | Monitoring
  • how to Configure Autologin for a VM in VMware Workstation
    Configure Autologin for a VM in VMware Workstation Virtualization
  • SASS in VsCode
    How to Install SASS on VsCode Scripts
  • Azure Local New Policy fix
    How to Resolve New WDAC Policy Issues in Azure Stack Virtualization
  • SQL EvaluationExpired
    Windows could not start the SQL Server service on local computer 17051: A network-related or instance-specific error occurred while establishing a connection to SQL Server Oracle/MSSQL/MySQL

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.