Remote Desktop Connection Error Code 0x904 Extended Error Code 0x7

The Microsoft Remote Desktop Protocol (RDP) error is a critical connection failure that typically indicates a handshake timeout, expired RDP certificate, network instability, or security layer mismatch . Unlike standard credential errors, this specific combination of codes means the RDP client initialized the connection but failed to establish a secure transport tunnel to the host.

Press , type certlm.msc , and press Enter to open the Local Computer Certificates Manager. Expand the Remote Desktop folder and click on Certificates . The Microsoft Remote Desktop Protocol (RDP) error is

If the RDP listener is corrupted:

In secure environments utilizing hardened policies (such as CyberArk PSM or defense-in-depth frameworks), the local NETWORK SERVICE account might lose permission to access its own cryptographic keys. This blocks the creation of the underlying TLS tunnel. Expand the Remote Desktop folder and click on Certificates

A common root cause is an expired self-signed certificate on the host machine. Open the ( certlm.msc ) on the host. A common root cause is an expired self-signed

Click , browse to C:\Windows\System32\mstsc.exe , and add it.