rdp to azure hci os fails with event 40 disconnect code 12

Copper Contributor

this problem appears on all 4 nodes.

azure stack hci os 10.0.17784 
also using windows admin center


in the beginning it was working. after the printnightmare series of updates I noticed the issue 

description of symptoms

(normal operation)
a) if the console user is logged in (after pressing ctrl+alt+del and signing in at the console). they see the sconfig screen. 
b) if a remote user then logs in with the same credentials. everything is fine. they can log in as per normal etc.
c) in windows admin center, under overview. you will see Logged in users = 1

(abnormal operation)
a) upon server reboot. or IF the logged in user does a log off (sconfig option 12) (whether at console or remotely)
if a remote user wants to rdp in, it immediately fails.
the log will see "session x has been disconnected, reason code 12", event id 40 under terminalservices-localsessionmanager

b) windows admin center at this point will display a logged in users count of -1 (not 0) .

c) once the console user logs in, everything works.

its a minor but annoying bug though.

so there are viable workarounds.
you can still user server manager at the management pc to run computer management, powershell etc against the headless azure hci.

I initially thought it was GPO hardening settings that was initially applied (azure hci os says you shouldn't have any hardening). so after the problem showed up, I excluded it from any policies 

1 Reply
I have some idea of a "workable workaround" by configuring autoadminlogon though.