Windows Server Summit 2024
Mar 26 2024 08:00 AM - Mar 28 2024 04:30 PM (PDT)
Microsoft Tech Community
LIVE

Windows server RDP black screen

Copper Contributor

Hello!
I have 3 windows server machines in different places (with different domain, fully separated) with windows server 2019 OS, all of them does this, sometimes when I try to log in to the computer with remote desktop I only get a black screen, the CRTL+ALT+END does nothing, and after some time the connection closes. If I open the computer via idrac (DELL) nothing works I cannot move the mouse, the only solution is the hard reboot. I have a foth server with server 2016 OS which works well. I tried to update one of them to server 2022, but nothing changed the problem persists. The problem mostly occurs when I don't log out of the remote desktop, I just close the window. But it also happened that I logged out before. This is very annoying, what can cause this?

14 Replies

@Harm_Veenstra Is this update available for Server 2022? If yes what is the KB number?

Don't see a server 2022 download, but server 2022 is mentioned in the article. But are your servers up to date?
Yes they are up to date, but this update wrote that it cannot be installed from microsoft update, only manually.
It's KB5010197 (https://www.catalog.update.microsoft.com/Search.aspx?q=KB5010197) for Windows Server 2022, details here https://support.microsoft.com/en-us/topic/january-5-2022-kb5010197-os-build-20348-407-out-of-band-09....

But the details on catalog.update.microsoft.com says:

This update has been replaced by the following updates:

2022-02 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5010354)
2022-02 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5010421)
2022-01 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5009555)
2022-01 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5009555)
2022-01 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5009555)
2022-01 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5010796)
2022-05 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5014021)
2022-06 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5014678)
2022-06 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5014665)
2022-04 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5012604)
2022-01 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5009608)
2022-07 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5015827)
2022-03 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5011558)
2022-07 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5015879)
2022-08 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5016627)
2022-09 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5017316)
2022-04 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5012637)
2022-05 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5013944)
2022-10 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5018421)
2022-09 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5017381)
2022-10 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5020436)
2022-10 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5018485)
2022-03 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5011497)
2022-11 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5019081)
2022-08 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5016693)
2022-05 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5015013)
2022-12 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5021249)
2022-12 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5022553)
2022-11 Cumulative Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5021656)
2022-11 Cumulative Update Preview for Microsoft server operating system version 21H2 for x64-based Systems (KB5020032)

So the update in all monthly updates after the patch, so if you're up-to-date... You should already have this fix...
The systems are up to date so this is not helped.
Any errors in Application and Service Logs –> Microsoft –> Windows –> RemoteDesktopService-RdpCoreTS on that machine?
I found this:
RemoteFX protocol RDP-Tcp#0 connection detected an error (0x80070057)

And this warning multiple times:
TCP channel WRITE failed with error 64
TCP channel READ failed with error 64
RDP_TCP: An error occurred while leaving StateUnknown state for Event_Disconnect. (Error code: 0x80070040)

PS: I don't know that these are the exact error messages, because my OS is Hungarian and I translated the messages.
And that was about disabling RemoteFX?
Any update?

@Harm_Veenstra 

Hello, Got it fixed by latest update form BackupAssist CryptoSafeGuard Driver:

BackupAssist Classic v12.0.4r1

Released August 28th, 2023

Urgent fix release

  • Urgent: Avoid “black screen” and other Remote Desktop/Team Viewer connection issues after reboots on installations that have applied Windows update KB5028166 on Windows 11 and KB5028171 on Windows Server 2022.
    • The root cause is a change in the OS that causes some services to fail to start when driver operations are unexpectedly handled as failures (eg. in CryptoSafeGuard Shield, various Anti-Malware drivers, etc).

Ah, good to hear that it's fixed!
In my case I also had black screen connecting by ILO/IPMP in servers of different vendors, so different ILO hardware and RDP to de servers got same black screen. PSSession to the servers was possible.
The problem was caused modifiying GPO applied to the servers related to the "Bypass traverse checking" user right to explicit some service users for SQL Server. Doing so we removed permissions from the default users (all users).
In the event viewer, in RemoteDesktopServices-RdpCoreTs, we got "RDP_SEC: An error was encountered when transitioning from FStatePassthrough in response to FEventCheckAndCompleteReadsFailed (error code 0x8007139F)."
Hope it helps someone.