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
Applications and Services Logs > Microsoft > Windows > TerminalServices-Gateway > Operational.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
Win + R) and type gpedit.msc.Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security.gpupdate /force to apply the change immediately.