How to Fix Microsoft Remote Desktop Error Code 0x904 Faster and Better
Registry key on RDP host:
Flush DNS
: On your local computer, open Command Prompt and run ipconfig /flushdns .
Try the Microsoft Store RDP App
: Users on Microsoft Q&A report that the modern Remote Desktop app from the Microsoft Store often bypasses errors found in the built-in mstsc.exe client. Quick Troubleshooting Steps
$path = "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" Set-ItemProperty -Path $path -Name "SecurityLayer" -Value 0 -Type DWord
Pro tip:
After fixing the connection, revert this policy to “Not Configured” or “Mitigated” to restore security. This is better than leaving your machine vulnerable indefinitely.