# Get a valid cert (internal CA or public) with Server Authentication EKU # Then assign to RDP listener $cert = Get-ChildItem Cert:\LocalMachine\My | Where-Object $_.Subject -like "*your_hostname*" wmic /namespace:\\root\cimv2\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash="$($cert.Thumbprint)"
For instance, tools like offer direct connectivity that can easily navigate through restrictive networks, eliminating the need for port forwarding or VPN configurations that are often the root cause of the 0x904 error. Such alternatives can be a lifesaver when the native Microsoft RDP client is unreliable.
Ensure your local and remote systems are fully updated, especially KB patches related to CredSSP (CVE-2018-0886). i remote desktop connection error code 0x904 better
The most effective fixes address the most common root causes first. These steps have been shown to resolve the error in many real-world cases.
: On your local computer, open Command Prompt and run ipconfig /flushdns . # Get a valid cert (internal CA or
If the issue is on your local machine after a Windows 11 upgrade, the client-side RDP tool might be buggy.
typically indicates a network connection issue, such as insufficient bandwidth, packet loss, or a mismatch in encryption ciphers The most effective fixes address the most common
Ensure that RDP (Port 3389) is properly enabled in Windows Firewall. Search for "Allow an app through Windows Firewall".