0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
JPPINTO
  • Home
  • Blog
  • Certifications
  • About
  • Contact
  • Shop
  • Gallery
  • Current Setup
Contact

Search

November 28, 2026 / System Administration, Windows

Restore the Classic Remote Desktop Security Warning for RDP Files

Tags: powershell, RDP, Remote Desktop, System Administration, Windows Security
Featured image for Restore the Classic Remote Desktop Security Warning for RDP Files

If you use saved Remote Desktop connections to manage Windows systems, you may have noticed a new Remote Desktop Connection security warning every time you open an .rdp file. For an unsigned file, the dialog says Caution: Unknown remote connection and identifies the publisher as unknown. It also asks which local resources you want to make available to the remote computer.

Remote Desktop Connection security warning for an unsigned RDP file, with resource redirection options and Connect and Cancel buttons

I understand why Microsoft wants to make remote connections safer. But this is one of those annoying new features Microsoft introduces every now and then that makes an administrator's life miserable. One extra confirmation sounds small until you connect to machines all day, every day. Across a year, it can mean thousands of extra mouse clicks.

This is especially frustrating in air-gapped environments, where I have dozens of saved RDP files with saved credentials for easy administration. These are connections I already use to maintain the environment, yet the new dialog interrupts the same routine over and over again. An air gap does not make an unknown file automatically safe, but it does make certificate distribution and changes to established workflows more involved.

Fortunately, Microsoft documents a temporary registry setting that restores the previous dialog behavior. It applies to the Windows computer running Remote Desktop Connection, not the remote servers. This is not a promise that every warning disappears: the previous dialog has its own warning behavior. Microsoft also says a future Windows update may remove support for the setting, even on older Windows versions. See Microsoft's explanation of RDP security warnings.

Why the Warning Appears

An unsigned RDP file does not provide a verifiable publisher. A malicious or modified file can point to an unexpected computer or request access to local resources. The new dialog gives you a chance to review the connection and choose which resources to redirect, such as the clipboard or printers. Those choices apply to that connection launch.

The warning concerns trust in the RDP file and its requested redirections. It does not by itself prove that the remote computer is malicious, and restoring the old dialog does not fix an untrusted certificate or eliminate the need to verify the destination. Only open RDP files from sources you trust, and enable only the redirections you need.

Temporarily Restore the Previous Dialog

The supplied script sets this machine-wide policy registry value:

  • Key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client
  • Value: RedirectionWarningDialogVersion
  • Type: REG_DWORD
  • Data: 1

Run it on the client computer where you open the RDP files. It creates the key if necessary, sets the value, and reads it back. Because the setting is under HKEY_LOCAL_MACHINE, start PowerShell as an administrator. This changes the dialog behavior for users of that client; make sure the change fits your organization's security policy. If Group Policy manages the same value, coordinate with the policy owner because a policy refresh can overwrite a local change.

Close any open Remote Desktop Connection windows, run the script, and then open a trusted RDP file again to check the result. You should see the previous dialog behavior rather than the new dialog, as supported by your Windows version.

How to Run the Script

Save the script below as restore-rdp.ps1. Open PowerShell as administrator, then use the path where you saved it:

.\script_location\scriptname.ps1

For example:

Set-Location C:\Scripts
.\restore-rdp.ps1

If Windows prevents the script from running, see Make Sure PowerShell Scripts Can Run on Windows and follow your organization's execution policy.

PowerShell Script

#region Initialization
Clear-Host
Push-Location $PSScriptRoot

Write-Host "Restoring legacy Remote Desktop security dialog..."
#endregion

#region Configure RDP Client
$RegPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client"

if (-not (Test-Path $RegPath)) {
    New-Item -Path $RegPath -Force -ErrorAction Stop | Out-Null
}

New-ItemProperty -Path $RegPath `
    -Name "RedirectionWarningDialogVersion" `
    -PropertyType DWord `
    -Value 1 `
    -Force `
    -ErrorAction Stop | Out-Null
#endregion

#region Verify
$Value = (Get-ItemProperty -Path $RegPath -Name "RedirectionWarningDialogVersion" -ErrorAction Stop).RedirectionWarningDialogVersion

if ($Value -ne 1) {
    throw "Failed to configure the legacy RDP security dialog."
}

Write-Host "Success: Legacy RDP security dialog restored." -ForegroundColor Green
#endregion

Undo the Change

If the value did not exist before you ran the script, open PowerShell as administrator and remove the value:

Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client' -Name 'RedirectionWarningDialogVersion'

If the value already existed, restore its previous value and type instead of simply deleting it. Reopen Remote Desktop Connection and check the behavior. A centrally managed policy may reapply its configured value.

A Longer-Term Option: Sign Trusted RDP Files

Microsoft recommends planning for the new dialog instead of relying indefinitely on the temporary registry setting. One approach is to sign RDP files and configure trusted publisher certificate thumbprints through Group Policy. Microsoft explains the choices and their effect on warnings and redirections in its RDP file security and Group Policy guidance.

That approach needs a certificate lifecycle, protected signing keys, and trusted publisher configuration on the clients. In an air-gapped environment, plan how certificates and trust settings will be provisioned and renewed without internet access. Test the process with a small set of files before rolling it out. Also remember that trusting a publisher can allow requested redirections without the new warning, so protect both the signing key and the files you distribute.

Saved credentials make administration convenient, but they are still sensitive. Restrict access to administrator workstations and saved connection files, and follow your organization's credential-storage and rotation policies. Signing a file does not replace those controls.

For now, the registry setting can give administrators breathing room while they decide how to handle trusted RDP files. I would still like to see Microsoft provide a practical way for administrators to keep familiar workflows without adding thousands of repetitive clicks to the year.

Post Views: 44
<- Fix ‘Codex Could Not Start’ in VS Code Remote SSH on Linux

Categories

  • Active Directory (5)
  • AI (5)
  • Amazon Cloud Services (1)
  • AWS (3)
  • Blazor (1)
  • C# (C-Sharp) (3)
  • CI/CD Pipelines (1)
  • Cloud (1)
  • Cloudflare (2)
  • Codex (2)
  • Containers (4)
  • Deployment (2)
  • Development (6)
  • DNS (1)
  • Docker (3)
  • Email (1)
  • Family (1)
  • General (5)
  • IIS 6.0 (4)
  • IIS 7.0 (10)
  • IIS 8.0 (1)
  • Infrastructure as Code (IaC) (1)
  • Kubernetes (3)
  • Linux (11)
  • Microsoft 365 (2)
  • MySQL (1)
  • Office 2010 (1)
  • PHP (1)
  • PowerShell (11)
  • Productivity (1)
  • Security (2)
  • Servers (9)
  • SharePoint 2007 (8)
  • SharePoint 2010 (19)
  • SharePoint 2013 (2)
  • SharePoint Online (1)
  • SMTP (4)
  • SQL Server 2008 (1)
  • SQL Server 2008 R2 (1)
  • SQL Server 2012 (2)
  • SQL Server 2019 (1)
  • SSL (1)
  • System Administration (1)
  • Travel (1)
  • Troubleshooting (1)
  • Ubuntu (9)
  • Uncategorized (1)
  • URL Rewrite (2)
  • Visual Studio 2019 (1)
  • Visual Studio Code (1)
  • Web Server (1)
  • Windows (1)
  • Windows 10 (7)
  • Windows 2003 (9)
  • Windows 2008 (18)
  • Windows 2012 (6)
  • Windows 7 (3)
  • Windows Firewall (1)
  • Windows Server (1)
  • Windows Vista (1)
  • WordPress (5)
  • WP-CLI (3)

Recent Posts

  • Restore the Classic Remote Desktop Security Warning for RDP Files
  • Fix ‘Codex Could Not Start’ in VS Code Remote SSH on Linux
  • Move WordPress Uploads to Amazon S3 with the Uploads to S3 Plugin
  • WordPress Must-Use Plugins: MU Plugins vs. Regular Plugins
  • Install Codex Desktop on Windows Server and Control It from Your Phone

Advertisement

Tags

agents.md ai coding agents aws bash cloudflare cloud storage codex context engineering developer workflow dev to production dns externalize blob externalize sharepoint data full installation https IIS IIS installation index server configuration installing cumulative updates linux load balance central administration microsoft 365 nginx powerpoint powershell redirect http to https s3 server setup sharepoint 2010 cumulative updates sharepoint 2010 farm build sharepoint 2010 farm configuration sharepoint 2010 farm installation sharepoint data externalization ssl storagepoint tls ubuntu ubuntu server web server windows windows server 2008 wordpress WordPress plugins wp-cli x86
© 2026 JPPinto.com. All rights reserved.