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

Search for in the Start menu. Click Change settings .

The server’s self-signed RDP certificate has expired or its private key is inaccessible. Search for in the Start menu

Restart via the Services app or PowerShell ( restart-service termserv -force ) to auto-generate a new one. Search for in the Start menu

If it is expired, right-click the certificate and select . Search for in the Start menu

Interpreted simply, the client-side networking socket was unexpectedly closed during the connection handshake. However, the provides a more specific context. When combined, they indicate that the client could not properly negotiate or authenticate the session due to security conflicts, network issues, or configuration mismatches.

Disable . Troubleshooting Checklist Unable to RDP into some Windows Servers - Error code: 0x904