I Remote Desktop Connection Error Code 0x904 Better Upd -

If you have local access to the server, open the Certificates Manager ( certlm.msc ), find the expired certificate under Remote Desktop > Certificates , and delete it. Afterward, restart the Remote Desktop Services in the Command Prompt as an administrator using restart-service termserv -force . Windows will then automatically generate a fresh certificate.

More precisely, it is a during the RDP handshake. The client receives a certificate from the RDP server (Windows, Azure Virtual Desktop, or third-party gateway), but the client rejects it.

"Remote Desktop Connection error: The remote computer disconnected. The error code is 0x904." i remote desktop connection error code 0x904 better

This is the most effective first step for standalone errors. A corrupted registry key is often the culprit.

Look for entries starting with TERMSRV/ followed by the IP address or name of your remote PC. Click on the entry and select . If you have local access to the server,

Log into the affected host locally or through an alternative remote tool.

The most common cause for error 0x904 is an expired self-signed certificate that the Remote Desktop Service uses for encryption. More precisely, it is a during the RDP handshake

You can force Windows to regularly check the connection status, keeping the RDP tunnel open during brief network dips.

Windows Defender or third-party antivirus software flags the RDP traffic.

Go to the tab and ensure that "Connect from anywhere" settings are configured correctly if you use an RD Gateway. 4. Enable Keep-Alive Connections via Group Policy