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

The Remote Desktop error 0x904 with extended error 0x7 is not a corruption or hardware failure—it is a clear signal of a TLS negotiation breakdown. By methodically testing client-side security settings, server RDP security layers, and network interference, you can restore connectivity.

Start with disabling CredSSP or testing restrictedAdmin, then move to the server’s SecurityLayer registry key, and finally inspect any firewall performing SSL inspection. Most cases resolve within 15 minutes by adjusting one of these three areas.

If this guide helped you reconnect, share it with your team. For persistent issues, collect a Wireshark trace and a Windows RDP CoreTS event log, then consult Microsoft Support with that evidence.


Have questions or additional fixes for error 0x904 / 0x7?
Leave a comment below or contact our IT support team at support@example.com.

This error typically indicates an unstable network connection certificate mismatch between the host and client www.remoteaccesspcdesktop.com

. It often occurs over VPNs or when RDP certificates on the remote machine have expired or become corrupt www.remoteaccesspcdesktop.com 🛠️ Primary Fixes 1. Reset RDP Certificates (Most Common Fix)

If the self-signed certificate on the remote computer is expired or corrupt, the connection will fail immediately www.remoteaccesspcdesktop.com Locally access the remote machine (or use another remote tool). Certificates MMC snap-in certlm.msc www.remoteaccesspcdesktop.com Navigate to Remote Desktop > Certificates the existing certificate www.remoteaccesspcdesktop.com Restart the service : Open Command Prompt as Admin and run restart-service termserv -force www.remoteaccesspcdesktop.com . Windows will automatically generate a fresh certificate. 2. Resolve Certificate Store Corruption (Azure/Cloud VMs) If you are using an Azure VM and the above fails, the MachineKeys folder may be corrupt Run the following PowerShell command as Administrator:

Rename-Item -path "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" -NewName "MachineKeys_old" the server to regenerate the key store 3. Adjust Security Layer Settings

If the connection is unstable, lowering the required security layer can sometimes bypass the error Microsoft Learn Group Policy Editor gpedit.msc ) on the host.

Computer Configuration > Admin Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security "Require use of specific security layer..." and select from the dropdown Microsoft Learn

"Require user authentication... using Network Level Authentication (NLA)" Microsoft Learn 🌐 Network & Environment Checks Use IP instead of Hostname:

Try connecting directly to the IP address to rule out DNS issues TheITBros.com VPN Stability:

If using a VPN, disconnect and reconnect. Low bandwidth or high packet loss frequently triggers TheITBros.com Firewall Exceptions:

is allowed through the Windows Firewall on both the client and host machines Third-party Security: Antivirus software like Bitdefender

has been known to block these connections; try adding an exception for RDP 🧩 Feature Request: RDP Connection Troubleshooter

Since you asked to "create a feature," here is a conceptual design for a built-in RDP diagnostic tool to prevent this error. Feature Name: RDP Health Check & Auto-Repair Pre-Connection Validation:

Before attempting a full handshake, the client pings the host specifically for certificate validity and MTU (Maximum Transmission Unit) size. One-Click Cert Renewal:

A button on the error dialog that allows an admin to remotely trigger a certificate flush and restart without needing full desktop access. Network Path Tracing: If a connection fails with

, the tool automatically runs a specialized trace to identify if the packet loss is occurring at the VPN gateway or the local ISP. Smart Fallback:

If NLA or High-Encryption fails due to a handshake mismatch, the client offers a "Secure Fallback" mode that temporarily negotiates a compatible security layer. To narrow this down, could you tell me: Are you connecting to a local server Azure/AWS VM physical PC Are you using a standard internet connection Has anything changed recently, like a Windows Update firewall change Fix Remote Desktop Error Code 0x904: 4 Working Solutions

Restart the Remote Desktop Services by opening Command Prompt as administrator and running: restart-service termserv -force. www.remoteaccesspcdesktop.com Fix Remote Desktop Error Code 0x904: 4 Working Solutions

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

Remote Desktop Connection (RDC) is a feature in Windows that allows users to remotely access and control another computer over a network or the internet. While RDC can be a convenient tool for remote access, users may sometimes encounter errors that prevent them from establishing a connection. Two common error codes that users may encounter are error code 0x904 and extended error code 0x7. In this article, we will explore the possible causes of these error codes and provide step-by-step troubleshooting guides to resolve them.

Understanding Error Code 0x904 and Extended Error Code 0x7

Error code 0x904 and extended error code 0x7 are specific error codes that are associated with Remote Desktop Connection. Error code 0x904 typically indicates that the remote desktop connection has failed, while the extended error code 0x7 provides additional information about the cause of the error.

Causes of Error Code 0x904 and Extended Error Code 0x7

There are several possible causes of error code 0x904 and extended error code 0x7, including:

Troubleshooting Steps for Error Code 0x904 and Extended Error Code 0x7

To resolve error code 0x904 and extended error code 0x7, follow these step-by-step troubleshooting guides:

Step 1: Check Network Connectivity

Step 2: Disable Firewall or Antivirus Software

Step 3: Verify Remote Desktop Settings

Step 4: Update Windows and RDC

Step 5: Run the RDC Troubleshooter

Step 6: Check Event Viewer Logs

Step 7: Reset RDC Settings

Step 8: Reinstall RDC

Conclusion

Error code 0x904 and extended error code 0x7 can be frustrating issues that prevent users from establishing a remote desktop connection. By understanding the possible causes of these error codes and following the step-by-step troubleshooting guides outlined in this article, users should be able to resolve the issues and establish a successful RDC connection. If the issue persists, it may be necessary to seek further assistance from Microsoft support or a qualified IT professional.

Remote Desktop error code 0x904 (extended error 0x7) typically indicates an unstable network connection, expired certificates, or firewall misconfigurations www.remoteaccesspcdesktop.com 1. Renew Expired RDP Certificates

The most common cause for this specific error is an expired self-signed certificate on the remote server. www.remoteaccesspcdesktop.com Access the server locally or through an alternative remote tool. certlm.msc , and press Enter. Navigate to Certificates Remote Desktop Certificates Find the certificate used for Remote Desktop, check its expiration date , and delete it if expired. Open Command Prompt as Administrator and run: restart-service termserv -force (or restart the server).

Windows will automatically generate a new certificate upon restart. www.remoteaccesspcdesktop.com 2. Connect via IP Address

Windows 11 builds (22H2 and later) sometimes have hostname resolution bugs that trigger this error. www.remoteaccesspcdesktop.com Try connecting using the target machine’s IP address 192.168.1.100 ) instead of its hostname. Clear your DNS cache on the client machine by running ipconfig /flushdns in Command Prompt. TheITBros.com 3. Fix Certificate Store (Azure VMs only) If you are using an Azure Virtual Machine, a corrupt MachineKeys

folder often prevents new RDP certificates from being created. www.remoteaccesspcdesktop.com In the Azure Portal, go to your VM and select Run Command RunPowerShellScript Run the following command:

Rename-Item -path "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" -NewName "MachineKeys_old" the server from the portal. www.remoteaccesspcdesktop.com 4. Configure Firewall & Antivirus

Ensure that the Remote Desktop application and port 3389 are not being blocked. Microsoft Learn Allow an app through Windows Firewall on both machines. Remote Desktop Remote Desktop (WebSocket) are checked for both Private and Public networks. Verify that (located in C:\Windows\System32\ ) is explicitly allowed in your antivirus settings. 5. Increase Outstanding Connections

If the error occurs during high traffic or multiple simultaneous requests, you can increase the connection limit via the Registry: Microsoft Learn Run Command Prompt as Administrator.

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v MaxOutstandingConnections /t REG_DWORD /d 65536 your computer. Microsoft Learn disable Network Level Authentication (NLA) as a temporary security workaround to test the connection? Fix Remote Desktop Error Code 0x904: 4 Working Solutions

Remote Desktop Error 0x904 (Extended Error 0x7) typically indicates a network connectivity failure often triggered by unstable connections, expired RDP certificates, or firewall interference Quick Fixes Connect via IP Address

: Instead of using the computer name (hostname), enter the target computer's internal IP address 192.168.1.100 Restart RDP Services

: On the remote machine, open Command Prompt as Administrator and run: restart-service termserv -force Use the Microsoft Store App : Users have reported that the Microsoft Remote Desktop app

from the Microsoft Store often works when the built-in Windows client fails. www.remoteaccesspcdesktop.com Primary Solutions 1. Renew Expired RDP Certificates

A common cause of 0x904 is an expired self-signed certificate that Windows failed to renew automatically. www.remoteaccesspcdesktop.com On the remote server, press certlm.msc , and hit Enter. Navigate to Remote Desktop Certificates Expiration Date . If expired, right-click and the old certificate.

Restart the Remote Desktop Service (using the command in Quick Fixes) to trigger Windows to generate a new certificate. www.remoteaccesspcdesktop.com 2. Fix Certificate Corruption (Azure VMs) For Azure Virtual Machines, a corrupt MachineKeys folder can prevent RDP from functioning. www.remoteaccesspcdesktop.com In the Azure Portal, go to your VM and select Run command RunPowerShellScript and enter:

Rename-Item -path "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" -NewName "MachineKeys_old" the server from the portal. 3. Verify Firewall & Security Software

Antivirus or firewalls may block RDP traffic even if rules appear active. Unable to RDP into some Windows Servers - Error code: 0x904

The Remote Desktop Connection error code 0x904 (Extended error code 0x7) is a generic network-related failure that prevents a client from establishing a session with a remote host. While it is often caused by unstable network conditions, it can also stem from expired security certificates, firewall blocks, or specific Windows 11 compatibility issues. Common Causes of Error 0x904

Unstable Network: Insufficient bandwidth, high packet loss, or a sluggish VPN connection.

Expired RDP Certificates: The self-signed certificate used by Remote Desktop Services has expired and failed to renew automatically.

Firewall Interference: Windows Defender or third-party antivirus software (like Bitdefender) blocking mstsc.exe or RDP traffic.

Certificate Store Corruption: This is particularly common on Azure VMs where the MachineKeys folder becomes corrupt, preventing new certificate generation. Step-by-Step Solutions 1. Renew Expired RDP Certificates

If you can connect to some servers but not others on the same network, an expired certificate is the most likely culprit.

Log into the remote server (via a console or alternative remote tool). Press Win + R, type certlm.msc, and press Enter. Navigate to Remote Desktop > Certificates.

Check the expiration date of the certificate. If it is expired, right-click and Delete it.

Open PowerShell as Administrator and run:Restart-Service TermService -Force

Windows will automatically generate a new, valid self-signed certificate. 2. Fix Corrupt MachineKeys (Azure VMs)

For users seeing this error on Azure Virtual Machines, renaming the key store folder can force Windows to rebuild the certificate environment. In the Azure Portal, go to your VM and select Run command.

Choose RunPowerShellScript and enter:Rename-Item -path "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" -NewName "MachineKeys_old" Reboot the server from the portal. 3. Configure Firewall Exceptions Ensure that both the client and host allow RDP traffic.

Search for "Allow an app through Windows Firewall" in the Start menu. Click Change settings. The Remote Desktop error 0x904 with extended error

Ensure both Remote Desktop and Remote Desktop (WebSocket) are checked for Private and Public networks.

Click Allow another app, browse to C:\Windows\System32\mstsc.exe, and add it to the list. 4. Adjust Security Layers (NLA Issues)

Sometimes, Network Level Authentication (NLA) or encryption mismatches cause the 0x904 error. On the remote host, open gpedit.msc.

Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security.

Enable "Require use of specific security layer for remote (RDP) connections" and set it to RDP.

Disable "Require user authentication for remote connections by using Network Level Authentication". Troubleshooting Checklist Unable to RDP into some Windows Servers - Error code: 0x904

The Remote Desktop error 0x904 (Extended Error 0x7) typically indicates an unstable network connection, expired security certificates, or firewall interference. Common Fixes

Renew Expired RDP Certificates: This is often the primary cause when some servers connect and others do not. Log into the remote server and run certlm.msc. Navigate to Remote Desktop > Certificates. If the certificate is expired, delete it.

Restart Remote Desktop Services via the Services app or PowerShell (restart-service termserv -force) to auto-generate a new one.

Use IP Address Instead of Hostname: Hostname resolution issues, especially in Windows 11, can trigger this error. Try connecting directly via the server's IP address (e.g., 192.168.1.100).

Azure VM MachineKeys Fix: For Azure virtual machines, a corrupt certificate store is a known trigger. Use the Azure Portal's Run Command to rename the keys folder:Rename-Item -path "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" -NewName "MachineKeys_old" then reboot the server.

Adjust Firewall and Antivirus: Ensure mstsc.exe is allowed through the Windows Defender Firewall on both machines. Third-party software like Bitdefender has also been known to block these connections unless an exception is added.

Network Stability: If connecting via VPN, verify your bandwidth. A slow or dropping VPN tunnel is a frequent cause of the 0x7 extended error.

Are you connecting to a local machine or a cloud-based server like an Azure VM? After Windows 11 Upgrade RDP Error 0x904 extended error 0x7

This error typically occurs when trying to connect to a Windows machine (Windows 10/11 Pro, Enterprise, or Server) via Microsoft Remote Desktop Protocol (RDP). The combination of 0x904 (session lock failure) and 0x7 (authentication/credential rejection) points toward specific, resolvable causes.


On the RDP host, create or modify:

HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
DWORD: fDenyTSConnections = 0 (to allow RDP)
DWORD: AllowRemoteRPC = 1

Then:

HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
DWORD: UserAuthentication = 0 (disables NLA requirement – test only)

Reboot after changes.

If the default port has been changed or is not listening, the connection will fail immediately.


Error 0x904 with extended error 0x7 generally points to a failure early in the RDP connection establishment—most often networking, name resolution, firewall/port blocking, or an authentication/TLS handshake issue. Systematic diagnostics—connectivity tests, port checks, DNS validation, log inspection, and isolating client vs server vs network—quickly narrow the root cause. Remediations focus on restoring network reachability, aligning security/NLA settings, fixing certificates, and ensuring correct firewall/NAT rules. Following the structured steps above typically restores successful RDP connections and reduces recurrence risk.

Related search suggestions: (search terms provided separately)

Here’s a focused troubleshooting guide for Remote Desktop Connection error code 0x904 (extended error code 0x7).


Option A – Disable NLA temporarily (quick test)

Option B – Update CredSSP registry on host (if you cannot disable NLA)
If the host is patched with CVE-2018-0886 in “Force updated clients” mode, you can downgrade temporarily:


Remote Desktop error 0x904 (Extended Error 0x7) generally signals a breakdown in the initial connection handshake, often caused by unstable network conditions, expired security certificates, or misconfigured encryption settings. While it frequently points to "dodgy" connections or slow VPNs, it can also stem from more technical issues like the host being unable to read its own private key. Core Troubleshooting Paths 1. Resolve Certificate Expiration or Corruption

A common silent killer for RDP connections is an expired self-signed certificate on the host machine. If a certificate is expired or its store is corrupt, the handshake will fail with error 0x904.

Standard Fix: Log into the host locally, open the Certificates MMC snap-in (certlm.msc), and navigate to Remote Desktop > Certificates. If the certificate is expired, delete it and restart the Remote Desktop Services (termserv) to force Windows to generate a new one.

Azure VM Special Case: If you are on an Azure instance, certificate store corruption often occurs in the MachineKeys folder. Renaming this folder (e.g., to MachineKeys_old) via the Azure Portal's "Run command" and rebooting the server typically resolves the issue. 2. Address Network Instability and VPN Issues

The "Extended Error 0x7" specifically highlights network-level failures like insufficient bandwidth, high packet loss, or slow VPN throughput.

Connection Stability: Ensure both machines have a steady internet connection. High latency or "dodgy" Wi-Fi can trigger this error even if the initial ping is successful.

VPN Reconnect: If connecting via a business VPN, disconnect and reconnect to refresh the tunnel. Ensure your VPN client is updated to the latest version. 3. Adjust Security and Encryption Layers

If there is a mismatch in encryption ciphers between the client and the host, the connection may drop immediately.

Disable Network Level Authentication (NLA): Temporarily disabling NLA on the host via Group Policy (gpedit.msc) under Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security can bypass certain handshake failures.

Change Security Layer: In the same Group Policy location, you can set the "Require use of specific security layer" to RDP rather than Negotiate. 4. Practical Workarounds Have questions or additional fixes for error 0x904 / 0x7

Connect via IP: Try using the host's IP address instead of its hostname. This bypasses potential DNS resolution issues that sometimes surface as 0x904, particularly on newer Windows 11 builds.

Firewall Verification: Even if RDP appears enabled, verify that both "Remote Desktop" and "Remote Desktop (WebSocket)" are allowed through the firewall for both Private and Public profiles.

For a visual walkthrough of these troubleshooting steps, including firewall and service configuration, check out these guides:

Fix Remote Desktop Error 0x904 (Extended Error 0x7) Connecting to a remote PC should be seamless, but the Remote Desktop Connection error code 0x904, extended error code 0x7 is a frustrating roadblock. This specific error usually pops up when the client can’t establish a secure handshake with the host, often due to network instabilities or security mismatches.

Here is a comprehensive guide to getting your connection back online. What Causes Error 0x904 (0x7)?

Unlike generic "PC not found" errors, code 0x904 with extended code 0x7 typically points to: Network Level Authentication (NLA) failures. Waking issues (the PC is in Sleep or Hibernation mode). Firewall interference blocking specific RDP ports. Outdated RDP clients or corrupted local cache. Step 1: Disable Network Level Authentication (NLA)

NLA is a security layer that requires the user to authenticate before a session is established. While safer, it often triggers 0x904 if there is a credential mismatch.

On the host PC, press Win + R, type sysdm.cpl, and hit Enter. Go to the Remote tab.

Uncheck the box that says "Allow connections only from computers running Remote Desktop with Network Level Authentication." Click Apply and try connecting again. Step 2: Adjust Power Management Settings

The most common "silent" cause of error 0x7 is the host computer falling asleep. RDP cannot wake a computer that is fully asleep unless "Wake-on-LAN" is configured. On the host PC, go to Settings > System > Power & Sleep. Set "Sleep" to Never while plugged in.

Go to Device Manager, find your Network Adapter, right-click it, and select Properties.

Under Power Management, ensure "Allow the computer to turn off this device to save power" is unchecked. Step 3: Configure Windows Firewall

Even if RDP is enabled, the specific ports might be throttled or blocked by a recent Windows Update.

Open Control Panel > System and Security > Windows Defender Firewall.

Click Allow an app or feature through Windows Defender Firewall.

Find Remote Desktop and ensure both Private and Public boxes are checked.

If you use a third-party antivirus (like Norton or McAfee), you may need to manually open TCP port 3389. Step 4: Clear the RDP Cache (Client Side)

If the error persists on your local machine, your stored connection data might be corrupted. Open Remote Desktop Connection.

In the "Computer" field, click the dropdown and delete the IP/Name of the problematic host. Open File Explorer and go to C:\Users\%Username%\Documents.

Find the hidden file named Default.rdp (you may need to enable "Hidden items" in the View tab) and delete it. Restart the RDP client. Step 5: Registry Tweak for Security Providers

If you are still seeing 0x904, you can force the security layer via the Registry Editor. Press Win + R, type regedit, and hit Enter.

Navigate to: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp Find the SecurityLayer DWORD.

Double-click it and change the value to 1. (0 is RDP Security, 1 is Negotiate, 2 is SSL). Restart the computer. Summary Table Potential Cause Authentication Mismatch Disable NLA in System Properties Host PC Asleep Set Power Mode to "Never Sleep" Port Blocked Open TCP 3389 in Firewall Corrupt Credentials Delete Default.rdp and clear history

Are you connecting over a local network or via a VPN/Internet connection?

Remote Desktop error code 0x904 (extended 0x7) typically indicates a general network connection failure. It most often occurs due to network instability, expired security certificates on the host machine, or firewall interference. Most Common Fixes

Renew Expired Certificates: This is a frequent "hidden" cause where the self-signed RDP certificate on the host machine has expired.

On the remote server, press Win + R, type certlm.msc, and hit Enter. Navigate to Remote Desktop > Certificates. If a certificate is expired, delete it.

Restart the Remote Desktop Services (TermService) via the Services app or Command Prompt to force Windows to generate a new one.

Connect via IP Address: Instead of using the computer's hostname (e.g., "Work-PC"), use its local IP address (e.g., 192.168.1.50). This bypasses potential DNS resolution issues.

Verify Firewall Settings: Ensure that RDP is allowed through the Windows Defender Firewall on both the client and host machines.

Search for "Allow an app through Windows Firewall" and confirm Remote Desktop and Remote Desktop (WebSocket) are checked for both Private and Public networks.

Check VPN Stability: If you are connecting over a VPN, a "dodgy" or slow connection often triggers this specific code. Try disconnecting and reconnecting the VPN before attempting the RDP session again. Additional Troubleshooting

Restart Both Machines: A simple reboot of both the client and the remote host can often clear temporary service hangups or network glitches.

Update RDP Clients: Ensure you are using the latest version of the Microsoft Remote Desktop app, especially if you recently upgraded to Windows 11. Troubleshooting Steps for Error Code 0x904 and Extended

Azure VM Fix: If the error occurs on an Azure Virtual Machine, it may be due to a corrupt MachineKeys folder. Renaming this folder (e.g., to MachineKeys_old) and rebooting the server can resolve certificate creation issues.

Are you connecting over a local network or via a VPN/Gateway when this happens?