• Акция скидка при заказе 2-х научных статей
    звонок по всей России бесплатный

I Remote Desktop Connection - Error Code 0x904 Better

Remote Desktop error code (often accompanied by extended error code typically indicates a network instability or a security certificate mismatch . This error is common on Windows 11 and Windows Server 2022. Most Common Fix: Refresh the RDP Certificate Expired or corrupt self-signed certificates are a frequent cause for this error. www.remoteaccesspcdesktop.com On the remote server certlm.msc , and hit Enter. Navigate to Remote Desktop Certificates Right-click and any expired certificates (Windows will regenerate one automatically). Open Command Prompt as an administrator and run: restart-service termserv -force to restart Remote Desktop Services. www.remoteaccesspcdesktop.com Network & Connection Workarounds Unable to RDP into some Windows Servers - Error code: 0x904

Remote Desktop Connection error 0x904 (often accompanied by extended error code 0x7 ) is a common issue typically caused by network instability, expired RDP certificates, or Windows 11 compatibility bugs. Most Effective Fixes for Error 0x904 Renew Expired RDP Certificates : The most common root cause is an expired self-signed certificate on the remote server. On the remote server, press Win + R , type certlm.msc , and hit Enter to open Local Computer Certificates . Navigate to Remote Desktop > Certificates . Check the expiration date of the certificate. If it has expired, delete it . Restart the Remote Desktop Services by running restart-service termserv -force in PowerShell as an Administrator. Windows will automatically generate a fresh certificate. Use the IP Address Instead of Hostname : Many users on Windows 11 (specifically builds 22H2 and later) encounter 0x904 due to a bug in hostname resolution. Instead of entering the computer's name (e.g., "Office-PC"), enter its internal IP address (e.g., 192.168.1.50 ) in the Remote Desktop Connection window. Switch to the Microsoft Store RDP App : If the built-in mstsc.exe client continues to fail, the Microsoft Remote Desktop app available in the Microsoft Store often works because it uses a different networking stack that bypasses these specific bugs. Fix Azure VM Certificate Corruption : If you are using an Azure Virtual Machine, the 0x904 error frequently stems from a corrupt MachineKeys folder. Access the VM via the Azure Portal and use the Run Command feature to execute the following PowerShell script: Rename-Item -path "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" -NewName "MachineKeys_old" . Reboot the VM; Windows will recreate a healthy folder and fresh certificates. Grant Private Key Permissions : In advanced environments like CyberArk PSM, the error may occur if the NETWORK SERVICE account lacks read access to the RDP certificate's private key. In the Certificates MMC snap-in, right-click your certificate > All Tasks > Manage Private Keys , and ensure NETWORK SERVICE has Read permissions. Quick Connectivity Checklist Check Firewall : Ensure "Remote Desktop" and "Remote Desktop (WebSocket)" are allowed through the Windows Defender Firewall on both the client and host. Verify RDP Port : Use PowerShell to test if port 3389 is open: Test-NetConnection [TargetIP] -Port 3389 . Network Stability : If connecting over a VPN, ensure you have sufficient bandwidth; high packet loss can trigger this code.

Troubleshooting Remote Desktop Error Code 0x904 Remote Desktop Protocol (RDP) is essential for modern IT management, but encountering Error Code 0x904 (often accompanied by extended error code 0x7) can stall productivity. This error typically signals that the computer cannot establish a connection to the remote machine due to network instability, security policy mismatches, or certificate issues. Common Causes of Error 0x904 Before diving into technical fixes, it is helpful to understand why this specific error occurs: Network Instability : Insufficient bandwidth, high packet loss, or a sluggish VPN connection often trigger this code. Encryption Mismatches : The client and server may fail to agree on a supported cipher suite, especially after updates to Windows 11. Firewall Blocks : Windows Defender Firewall or third-party antivirus software might be blocking mstsc.exe or RDP traffic. Certificate Issues : A newly renewed or corrupted self-signed certificate can prevent the TLS tunnel from establishing correctly. Step-by-Step Solutions 1. Basic Connection Checks Start with simple remedies that often resolve intermittent issues: Unable to RDP into some Windows Servers - Error code: 0x904

Remote Desktop error 0x904 (often accompanied by extended error 0x7 ) typically signals a breakdown in the initial handshake between your device and the remote host. While it is often labeled as a "network instability" issue, modern troubleshooting identifies it more precisely as a failure in certificate validation or a specific Windows 11 compatibility bug . Why You’re Seeing It Expired RDP Certificates: The remote server uses self-signed certificates that don't always auto-renew. If they expire, the connection is instantly dropped after you enter credentials. Windows 11 "Hostname" Bug: Users on Windows 11 (especially version 22H2 and later) frequently encounter this error when connecting via a computer name rather than an IP address. Security Layer Mismatch: If the server requires Network Level Authentication (NLA) or TLS 1.2 but the client isn't configured for it, the connection will fail. Packet Loss or VPN Lag: True to its generic label, a high-latency VPN or unstable Wi-Fi can trigger it by timing out the connection mid-handshake. Proven Fixes Based on expert reviews from platforms like Reddit's Sysadmin community and Microsoft Q&A , try these steps in order: Switch to IP Connection: In the Remote Desktop window, replace the computer name with its local IP address (e.g., 192.168.1.50 ). This is the most common workaround for Windows 11 users. Renew Server Certificates: If you have access to the host, open certlm.msc , navigate to Remote Desktop > Certificates , and delete any expired ones. Restart the Remote Desktop Services ( termserv ) to force Windows to generate a new one. Try the Microsoft Store App: Users on Microsoft's support forums report that the Microsoft Remote Desktop app (from the Store) often bypasses the 0x904 error even when the built-in mstsc.exe fails. Azure VM Fix: If you are using an Azure VM, the issue is often a corrupt "MachineKeys" folder. Renaming C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys to MachineKeys_old and rebooting typically clears the error. Firewall Exceptions: Ensure mstsc.exe is explicitly allowed through both your local and remote firewalls. Some security suites like Bitdefender have been known to block these connections unexpectedly. Are you connecting to a personal PC or a Windows Server managed by an IT department? Fix Remote Desktop Error Code 0x904: 4 Working Solutions i remote desktop connection error code 0x904 better

Remote Desktop error code is often a result of expired or corrupt certificates unstable network connections Windows 11 compatibility bugs www.remoteaccesspcdesktop.com Most Effective Fixes Renew RDP Certificates (Primary Solution) : This error is frequently caused by expired self-signed certificates on the target server. Log into the target server directly. Open the Certificates MMC snap-in ( certlm.msc Remote Desktop Certificates the expired certificate. Restart the service via Command Prompt (Admin): restart-service termserv -force . Windows will automatically generate a fresh certificate. Fix Certificate Corruption (Azure VMs) : If your target is an Azure Virtual Machine, the certificate store might be corrupt. In the Azure Portal, use the Run Command tool to run this PowerShell script: Rename-Item -path "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" -NewName "MachineKeys_old" the server to reset the store. Windows 11 Workarounds : Windows 11 (builds 22H2 and later) has known RDP bugs. Use the IP Address : Instead of using the computer's hostname (e.g., ), type in its direct IP address (e.g., 192.168.1.50 Switch Apps Remote Desktop app from the Microsoft Store instead of the built-in "Remote Desktop Connection" ( ), as it uses a different networking stack that often bypasses this error. Network and Firewall Stability is open on the target computer's firewall. If using a VPN, a slow or unstable connection can trigger 0x904. Reconnect to your VPN or try a more stable internet source. www.remoteaccesspcdesktop.com Are you connecting to a local office computer Azure Virtual Machine Fix Remote Desktop Error Code 0x904: 4 Working Solutions

I Remote Desktop Connection Error Code 0x904 Better: The Ultimate Fix Guide Introduction: When RDP Fails You It happens at the worst possible moment. You’re about to start a critical work session, access a file on your office PC from home, or manage a server halfway across the world. You open the Microsoft Remote Desktop client, enter the credentials, and instead of a smooth connection, you’re greeted by a nondescript, frustrating message: “Error code: 0x904” If you’ve searched for “i remote desktop connection error code 0x904 better,” you are likely tired of generic advice that doesn’t work. You don’t just want a fix—you want a better fix. A permanent solution. An understanding of why this happens so it never steals another hour of your productivity. This article is your definitive resource. We will dissect error 0x904 layer by layer, from networking fundamentals to advanced Group Policy tweaks. By the time you finish reading, you’ll not only resolve the error but also optimize your entire RDP experience.

Part 1: What Exactly Is Remote Desktop Error Code 0x904? Before blindly applying registry hacks, let’s decode the error. Unlike generic “connection failed” messages, error 0x904 has specific roots in the RDP authentication and authorization pipeline . In technical terms, 0x904 translates to: SSL_ERR_NO_AUTH_CERT or a related certificate validation failure. In plain English: The remote computer refused to establish a secure connection because it couldn’t verify the identity of the client or server—or because the encryption protocols don’t match. Unlike error 0x204 (network issues) or 0x516 (licensing), 0x904 sits squarely in the domain of security, certificates, and TLS (Transport Layer Security) . Common culprits include: Remote Desktop error code (often accompanied by extended

Mismatched or expired self-signed certificates on the host. Group Policy settings forcing an older SSL/TLS version than the client supports. CredSSP (Credential Security Support Provider) encryption oracle remediation updates. DNS name mismatches between the certificate’s subject name and the address you typed.

The keyword here is “better” — so let’s move beyond turning the firewall off and actually diagnose the root cause.

Part 2: Before You Do Anything – The Quick Diagnostic Checklist Use this checklist to rule out simple, one-click issues. Even advanced users skip these steps sometimes. | Step | Action | Expected Result | |------|--------|------------------| | 1 | Can you ping the remote PC by hostname and IP? | Full reply from both | | 2 | Is Remote Desktop enabled on the host? | Settings > System > Remote Desktop = ON | | 3 | Does the user account have permission? | User is in “Remote Desktop Users” group | | 4 | Is the remote PC awake (not in sleep/hibernate)? | Network activity or WoL configured | | 5 | Is the local date/time correct? | Within 5 minutes of the remote machine | If all above checks pass, error 0x904 is almost certainly a security layer mismatch . Proceed to the advanced fixes. Unlike generic “connection failed” messages

Part 3: “Better” Fixes for Error 0x904 (Ranked by Likelihood) Fix #1: Adjust the RDP Security Layer via Group Policy (Most Effective) On the remote (host) computer:

Press Win + R , type gpedit.msc , hit Enter. Navigate to: Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Security Double-click “Require use of specific security layer for remote (RDP) connections” . Set it to Enabled and choose RDP (not Negotiate or SSL).