I have the same problem on my company laptop (Windows 10 Enterprise x64 Version 10.0.19044.1645) equipped with Intel iGPU and NVIDIA dGPU.
Problem emerged after installing KB5012599.
If I uninstall KB5012599 and reboot I can again connect to the laptop using RDP.
The errors observed are:
Windows Logs > Application:
- The Windows logon process has unexpectedly terminated.
Applications and Services Logs > Microsoft > Windows > TerminalServices-LocalSessionManager:
- Attempt to send connect (1) message to Windows video subsystem failed. The relevant status code was 0xD0000001.
- An error occurred when transitioning from DisconnectedLoggedDesktopLocked in response to EvConnected. (ErrorCode 0xD0000001)
NVIDIA Driver version is 512.59 (i.e. the latest one) which I installed to see if it would fix the problem but it didn't.
I have the following local policies configured to optimize RDP performance:
Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment:
- Use hardware graphics adapters for all Remote Desktop Services sessions (Enabled)
- Prioritize H.264/AVC 444 graphics mode for Remote Desktop Connections (Enabled)
- Configure H.264/AVC 444 hardware encoding for Remote Desktop Connections (Enabled)
- Use WDDM graphics display driver for Remote Desktop Connections (Disabled)
I have also ran the NVIDIA OpenGL RDP enabler tool so I can run applications that use OpenGL through RDP, but I removed the NVIDIA driver database where this setting is stored to disable it and determined that the problem is not related to OpenGL support state.
WDDM was disabled for RDP at some point in the past because of issues with NVIDIA drivers. After some digging I see now that XDDM support has been removed from Windows 10 21H1. It seems that KB5012599 has finally hit the kill switch for XDDM, at least when it comes to Windows 10 Enterprise channel.
After changing the policy Use WDDM graphics display driver for Remote Desktop Connections
back to Not Configured
and rebooting, the RDP connection now works for me just fine.