4

I've recently setup RDS on Windows Server 2022 Standard Edition.

Users frequently report that when they connect, they will see a black screen and the mouse cursor, but nothing else.

enter image description here

This occurs with the standard windows client, "Remote Desktop Connection" (mstsc.exe) in addition to "Remote Desktop Connection Manager" (rdcman.exe, from SysInternals) and even FreeRDP.

Most users are able to login without issue, but seemingly random users at seemingly random times will experience the issue and retry ~2-6 times, getting black screens from the RDS client until eventually the session starts normally (with graphics and not a black screen).

There appears to be no correlation with any specific users. Some users experience it, but then the issue goes away. Some users don't experience the issue for days, but then suddenly get a black screen (myself included). There is also no correlation with the number of users connected. It can happen for the first person to connect or the 30th to connect simultaneously.

There appears to be no correlation with any time of day.

There doesn't appear to be any resource contention, the server has 40 cores/80 threads, and 512GB memory and is not virtualized (Windows Server 2022 is running on bare metal).

Windows Event Logs indicate nothing unusual in either "Application" or "System." The specific Operational log for "RemoteDesktopServices-RdpCoreTS" (found under "Applications and Services Logs" / Microsoft / Windows) is referenced in numerous Internet articles, but all I can find in here are a few instances of the following which do not seem to correlate with the black screens:

  • Warning: TCP socket READ operation failed, error 64
  • Warning: RDP_TCP: An error was encountered when transitioning from StateUnknown in response to Event_Disconnect (error code 0x80070040).
  • Warning: TCP socket WRITE operation failed, error 64
  • Warning: TCP socket was gracefully terminated

There appear to be numerous mentions of this issue on the Internet...

https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/a-black-screen-appears-while-sign

https://www.makeuseof.com/fix-remote-desktop-black-screen-windows/

https://woshub.com/rdp-black-screen-windows-remote-desktop/

https://learn.microsoft.com/en-us/answers/questions/843933/windows-server-2022-remote-desktop-black-screen?page=2#answers

https://learn.microsoft.com/en-us/answers/questions/1036988/server-2022-rds-disconnected-user-reconnect-to-bla

...

Things I've tried:

  1. Disabled RemoteFX
  2. Disabled UDP protocol (via both "Turn Off UDP On Client" and "Select RDP transport protocols")
  3. Disabled WDDM driver
  4. Disabled the URCP (Universal Rate Control Protocol)
  5. Reduced color-bit depth
  6. Updated graphics drivers to current
  7. Set physical graphics adapter to use "Microsoft Basic Display Adapter"
  8. Disabled Windows Firewall

Nothing seems to resolve the situation.

I've opened a ticket with our managed IT service provider who is at a loss. I've opened a ticket with Microsoft who is having a difficult time getting back to us.

Any help would be greatly appreciated!

Novox
  • 534
  • 2
  • 12
  • 28

3 Answers3

1

Another user attempted to submit an edit to the original post as an answer... I rejected the edit and am reporting the suggestion here as a possible answer. I have not confirmed any of it.

It was suggested to, "Reduce the default service timeout by editing the following registry keys that will change the initial sign-in timeout to 30 seconds"

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppReadinessPreShellTimeoutMs Data Type: DWORD Value:0x7530

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\FirstLogonTimeout Data Type: DWORD Value:0x1e

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DelayedDesktopSwitchTimeout Data Type: DWORD Value:0x1e

Novox
  • 534
  • 2
  • 12
  • 28
0

Weird things will happen because you moved the User profiles folder, this is not recommended anymore on a production environment:

Important usage notes
We don’t recommend using this setting, except perhaps in a test environment.

When this setting is changed, Microsoft Store apps are not supported.

Nowadays, Windows uses Store apps as part of the system and has to provision them while loading/creating the user profile. Moving the user profile folder may prevent this step from running properly.

To overcome this situation, you may test the following steps:

  • Delete the user profiles from the User Profile control panel (do not fiddle with registry values or user profiles folders manually).
  • Move the user profiles folder back to the original location.
  • Log on to create the user profiles again. If multiple users are creating a profile at the same time, black screen may occur during a few minutes but they will eventually reach the desktop, once the profiles are created this is not something to expect anymore.

However, I'd recommend reinstalling the server and starting from scratch to avoid any leftovers/side effects.

Swisstone
  • 7,063
0

Looks as though you got this resolved by going back to Server 2016. We had a very similar issue with 2016 RDS farm and black screens at logon - seemingly randomly. What seemed to resolve it in the end for us was to disable these 2 services.

  • AppReadiness
  • AppXSvc

We do not use metro apps only locally installed software packages.