Error Code 0x904 Extended Error Code 0x7 [work] Full | Remote Desktop Connection

Troubleshooting Remote Desktop Error 0x904 (Extended Error 0x7)

Note: If you cannot access the GUI, you can run this command in an elevated PowerShell prompt on the remote machine to achieve the same result: Open Event Viewer

  1. Open Event Viewer.
  2. Navigate to Applications and Services Logs > Microsoft > Windows > TerminalServices-Gateway > Operational.
  3. Look for Event ID 301 (Connection attempt failed) or 302 (SSL error).
  4. A common peer error will be: "The SSL certificate required for authentication is not trusted."

Restart the "Remote Desktop Services" Service: On the host machine, open services.msc, find Remote Desktop Services, and hit Restart. Phase 2: Adjusting Network Level Authentication (NLA) Restart the "Remote Desktop Services" Service: On the

  1. On the remote machine (or via a remote PowerShell session), open the Run dialog (Win + R) and type gpedit.msc.
  2. Navigate to: Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security.
  3. Locate the policy named "Require user authentication for remote connections by using Network Level Authentication".
  4. Set this policy to Disabled.
  5. Open an administrative Command Prompt and run gpupdate /force to apply the change immediately.
  6. Attempt the connection again.