Server 2019 RDS Session Host randomly disconnects Administrative user at logon

Simon Belmont 20 Reputation points
2023-04-28T19:52:04.0333333+00:00

We have two different farms with Citrix VDAs in two different domains. The VDAs are running Server 2019, and obviously have the Remote Desktop Services Session Host role installed.

Occasionally they experience a strange problem, which automatically fixes itself after 2-3 hours. Regular users will be able to log on to Citrix sessions just fine, but if an administrative user tries to start an unbrokered (direct) rdp session to the same server, the session will seemingly start, but the user will automatically be disconnected after 3-4 seconds. The screen only turns black, no notice about user profile loading nor session starting is shown.

Investigating the Event logs shows the following:

When the problem occurs for rdp login,
https://i.ibb.co/1sCPMn2/Failed-Login.png

EventID: 261, Source: TerminalServices-RemoteConnectionManager
Listener RDP-Tcp received a connection

EventID: 1149, Source: TerminalServices-RemoteConnectionManager
Remote Desktop Services: User authentication succeeded

EventID: 39, Source: TerminalServices-LocalSessionManager
Session 4 has been disconnected by session 4

EventID: 40, Source: TerminalServices-LocalSessionManager
Session 4 has been disconnected, reason code 11

*** - No profile is ever loaded/created for the user.

When the problem does not occur for rdp login,
https://i.ibb.co/j6zzhM9/Succeeded-Login.png

EventID: 261, Source: TerminalServices-RemoteConnectionManager
Listener RDP-Tcp received a connection

EventID: 1149, Source: TerminalServices-RemoteConnectionManager
Remote Desktop Services: User authentication succeeded

EventID: 36, Source: TerminalServices-PnPDevices
Redirection of additional supported devices is disabled by policy.

EventID: 36, Source: TerminalServices-ServerUSBDevices
Redirection of additional supported devices is disabled by policy.

EventID: 41, Source: TerminalServices-LocalSessionManager
Begin session arbitration

EvendID: 20521, TerminalServices-RemoteConnectionManager
User config info will be loaded from local machine for this RDP-Tcp connection

EventID: 42, Source: TerminalServices-LocalSessionManager
End session arbitration

EventID: 20482, Source: TerminalServices-RemoteConnectionManager
Remote Desktop Services Network Fair Share was enabled for the user account Domain\UserName with a weight of 1.

EventID: 21, Source: TerminalServices-LocalSessionManager
Remote Desktop Services: Session logon succeeded

EventID: 22, Source: TerminalServices-LocalSessionManager
Remote Desktop Services: Shell start notification received

The problem does not occur every day, but arbitrarily occurs every now and then. Without any real error message apart from "reason code 11" (which is seemingly user initiated disconnect/logoff), this is hard to troubleshoot. Has anyone experienced anything similar?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,799 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,240 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,605 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,406 Reputation points
    2023-05-02T15:37:16.55+00:00

    Hello there,

    As there are several events generated we can make down the cause by using other Windows tools

    Process Monitor is an advanced monitoring tool for Windows that shows real-time file

    system, Registry and process/thread activity. You can get the tool from here

    https://docs.microsoft.com/enus/sysinternals/downloads/procmon

    System Monitor (Sysmon) is a Windows system service and device driver that, once installed on a system, remains resident across system reboots to monitor and log

    system activity to the Windows event log.You can get the tool from here

    https://docs.microsoft.com/enus/sysinternals/downloads/sysmon

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

  2. Xabier Silva 0 Reputation points
    2024-06-24T09:15:53.0533333+00:00

    I have the same problem. Any news?

    0 comments No comments

  3. Kreutz, D.A.A. (Dennis) 0 Reputation points
    2024-08-12T05:55:25.0533333+00:00

    we have a simmilar issue that occurs. does somebody allready have found a solution?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.