The Issue:
Today I started receiving an error while connecting to an Azure hosted Windows 2022 Server that until recently (2 or 3 days ago) were connecting fine.
The symptom: the connection error occurs after authentication (filled still in the client app) and passing all the security checks phases. When the RDP screen is to be rendered (it is created but still all black), it gives the error.
Your Remote Desktop Services session has ended, possibly for one of the following reasons:
The administrator has ended the session.
An error occurred while the connection was being established.
A network problem occurred.
For help solving the problem, see "Remote Desktop" in Help and Support.
[Expanded Information]
Error code: 0x3
Extended error code: 0x11
Note that this error happens even when connecting inside the server host to self (using localhost
or 127.0.0.1
).
More Info:
The control to this server was handled to a technician who installed AnyDesk, and maybe it started some kind of conflict, but I'm not sure it is related.
Using Group Policy (gpedit.msc
) all RDP settings related to Hardware Acceleration / RemoteFX optimizations / UDP connections were disabled, with no success.
Some (maybe) relevant Event Logs messages (I've translated them myself from pt-BR - ordered from last to first):
Info 103 The disconnection reason is 17
Info 72 Method interface call: GetServerAutoReconnectInfo
Info 72 Method interface call: GetServerAutoReconnectInfo
Info 72 Method interface call: DisconnectNotify
Info 72 Method interface call: SetErrorInfo(0x11)
Info 72 Method interface call: PreDisconnect(17)
Info 132 The rdpdr channel was connected between server and client using transport tunnel: 0.
Info 132 The Microsoft::Windows::RDS::Geometry::v08.01 channel was connected between server and client using transport tunnel: 0.
Info 132 The Microsoft::Windows::RDS::Geometry::v08.01 channel was connected between server and client using transport tunnel: 0.
Info 132 The Microsoft::Windows::RDS::Video::Data::v08.01 channel was connected between server and client using transport tunnel: 0.
Info 132 The Microsoft::Windows::RDS::Video::Control::v08.01 channel was connected between server and client using transport tunnel: 0.
Info 72 Method interface call: ConnectNotify(SessionId=1)
Info 162 The client offers support to version 0xA0400 of RDP graphics protocol, client mode: 2, AVC available: 0. Initial Profile: 2. Server: MyServer
Info 132 The Microsoft::Windows::RDS::Graphics channel was connected between server and client using transport tunnel: 0.
Info 132 The Microsoft::Windows::RDS::Telemetry channel was connected between server and client using transport tunnel: 0.
Info 72 Method interface call: OnReady
Info 72 Method interface call: OnConnected
Info 169 The client operating system type is (1, 0). Server: MyServer
Info 132 The rdpinpt channel was connected between server and client using transport tunnel: 0.
Info 33 The RDP protocol will be using RemoteFX guest module to connect to the client computer.
Info 132 The rdpgrfx channel was connected between server and client using transport tunnel: 0.
Info 66 The RDP-Tcp#0 connection was assigned to session: 1
Info 72 Method interface call: AuthenticateClientToSession
Info 135 The multitransport connection was completed for tunnel: 3. The transport type was defined as TCP: Reason Code: 2 (Forced by Server Configuration).
Info 135 The multitransport connection was completed for tunnel: 1. The transport type was defined as TCP: Reason Code: 1 (No Client UDP Support).
Info 100 The server confirmed the client multi-transport feature.
Info 98 The TCP connection was successfully established.
Info 72 Method interface call: ProtocolComplete
Info 72 Method interface call: SendClientLicense
Info 72 Method interface call: GetSecurityFilterCreds
Info 71 The RDP-Tcp#0 connection uses video driver RDPUDD.
Info 104 The client timezone is [-3] UTC Time
Info 72 Method interface call: AcceptConnection
Info 72 Method interface call: OnStartLicensing
I ran into the same issue today with one of my Server 2022 nodes. In my case I found it was because I disabled the Microsoft Remote Display Adapter while trying to clear my cluster validation report to zero warnings. Once the adapter is disabled it doesn't seem to be able to be re-enabled via the gui. (I have an OOB management connection so I can still get to the gui)
I un-installed the device entirely and established a new RDP session and the driver is back and I can remote in.
For what it's worth, I was getting almost the exact same issue. It started 2-3 days after I deployed the VM. One difference is that I was getting 0x10, not 0x11 like yours.
I was still able to use PSREMOTING into the server. So I disabled Sophos AV from the cli and it started working again. I'm going to re-install Sophos Endpoint, and try to open a ticket with them to see if they can figure it out. The endpoint logs showed no entries, but it is Sophos, so who knows.
Wow Thanks Ryan Swinney for the hint about the display adapter.
In my case I never disabled it, but I do update/change my Nvidia driver often for testing and maybe this led the RDP adapter to stay in a buggy state.
The solution that worked for me is this:
This of course requires that you have access to the remote PC either physically or through some other service like Chrome remote.
We found the solution for our problem, in our case the problem was the Antivirus (McAfee), we had a policy that blocked access to computers with Windows Server 2022.
Thank you all for the help, I hope my input can help you solve your cases.
I found a solution for the problem on this site: https://chowdera.com/2022/154/202206032340171247.html
On a new harddisk on windows server "localhost\users" (on a domaincontroller domain\users) has read access. If you remove the read access for "users" on the systemdrive (C:) you can't access the server via RDP.
I don't understand the dependency, but it works on two servers when I restore the read access for "users" on the systemdrive.
Greetings from Germany Manuel