Open the Start menu, type Allow an app through Windows Firewall , and press . Click the Change settings button at the top right. Scroll down to find Remote Desktop . Check both the Private and Public boxes next to it. Click OK to save changes and restart your computer. 4. Change Network Profile to Private
Remote Desktop Protocol (RDP) is a critical infrastructure tool for IT administrators and remote workers alike. However, encountering cryptic error codes can halt productivity instantly. One such elusive error is .
If this error happens frequently, you can adjust the Group Policy settings on the remote computer to manage how console sessions are handled. i remote desktop connection error code 0x904 install
If your environment uses an (common in corporate networks), error 0x904 usually signals that the Gateway is rejecting the connection request due to a policy mismatch. This is the most common cause of 0x904 during automated deployments or installs.
If you just installed a new server, updated Windows 11, or deployed a virtual machine (VM) and find yourself locked out, this comprehensive deep-dive article provides the actionable technical procedures required to restore your RDP infrastructure. Understanding the Root Causes of Error 0x904 Open the Start menu, type Allow an app
If you are seeing the specific combination of error code 0x904 with extended error code 0x7, follow this exact procedure. This is the most reliable solution reported by users.
Repeat these steps for . 3. Allow RDP Through Windows Firewall Check both the Private and Public boxes next to it
If NLA issues persist, adjust the security layer. In the Registry Editor ( regedit ), navigate to HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp and change the value to 0 (RDP Security) or 1 (Negotiate). Troubleshooting Summary Primary Solution Key Action Server/Local Renew RDP Certificate Delete old certs via certlm.msc Azure VM Fix Key Store Rename MachineKeys folder Network Issues Use IP Address Bypass DNS Third-Party AntiVirus Firewall Exception Allow mstsc.exe
Before diving into the solutions, it helps to understand why this error happens. The most common culprits include:
Tick both network checkboxes for the newly added entry and click to save your configurations. 5. Pivot to Alternative Clients or IP Target Methods
First, ensure basic RDP settings on the remote computer are correct: