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

: Ensure Remote Desktop is allowed in Windows Firewall.

typically points to network instability, expired security certificates, or firewall blocks : Ensure Remote Desktop is allowed in Windows Firewall

Even if RDP is "allowed," specific sub-components like "Remote Desktop (WebSocket)" may be blocked. Windows 11 Compatibility: Restart your local router and modem

Before diving into complex settings, ensure the physical and local network layers are stable. Restart your local router and modem. expired security certificates

Navigate to > Admin Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security .

If a previous session is stuck in a disconnected or locked state:

| Environment | Most likely fix | |-------------|----------------| | Domain-joined, mixed Windows 10/11 & Server 2016/2019 | Apply CredSSP updates + set AllowEncryptionOracle=2 on clients | | Older Windows 7 client to Windows 10/11 host | Update Windows 7 with KB4490628 + KB4474419 + CredSSP patches | | Third-party RDP client (Mac/Linux) | Switch to xfreerdp with --sec=nla or --sec=rdp flags | | Virtual machine (Hyper-V/VMware) | Check VM’s RDP security template in Hyper‑V Manager or vSphere |