I Remote Desktop Connection Error Code 0x904 Install Jun 2026
: Instead of typing the remote computer’s fully qualified domain name (e.g., server01.local ), type the explicit destination IPv4 address (e.g., 192.168.1.50 ) into the connection prompt.
Expired self-signed certificates can cause connection failures:
: Rename-Item -path "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" -NewName "MachineKeys_old"
Wait for the scan to finish. If it finds and repairs corrupted files, restart your PC and try connecting again. Advanced Troubleshooting: Modifying the Registry i remote desktop connection error code 0x904 install
Sometimes, DNS issues prevent the RDP client from resolving the remote computer's name correctly, leading to a 0x904 error.
As noted in Microsoft Q&A discussions, error 0x904 can be caused by a mismatch in the TLS/SSL protocol versions supported by the client and server.
If the error occurs after an update, a security policy mismatch between the client's cipher suites and the host server is likely the cause. Unable to RDP into some Windows Servers - Error code: 0x904 : Instead of typing the remote computer’s fully
If you encounter this error while trying to connect to an Azure Virtual Machine, a locked or corrupt MachineKeys folder may prevent the Remote Desktop service from properly accessing or creating cryptographic keys.
is a low-level STATUS_MEDIA_WRITE_PROTECTED error, not a typical connectivity issue. It means the installer attempted to commit an RDP binary or registry key to a location that refused write access. The fix involves removing read-only attributes, clearing the licensing store, and re-running the component installation via DISM or manual CAB expansion.
On the target virtual machine, navigate to the following file path: C:\ProgramData\Microsoft\Crypto\RSA\ Use code with caution. Locate the folder explicitly named MachineKeys . Unable to RDP into some Windows Servers -
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
Error 0x904 can occur due to insufficient bandwidth, packet loss, or slow VPN connections.
Upon startup, Windows recreates the directory with clean file objects and pristine security descriptors, establishing the required cryptographic environment. 3. Pivot to Using an IP Address Instead of Hostname