Hello,
Event ID 38 from Server Infrastructure Licensing is a critical compliance alert. It means the server has detected that the number of users or connections exceeds the licensed limit defined by your current edition or CAL (Client Access License) configuration. The “User Count Check” is part of the Remote Desktop Services licensing enforcement mechanism. When this condition is triggered, the system starts a countdown and will forcibly shut down the server if the licensing violation is not corrected.
The first step is to check the RD Licensing Diagnoser (rdlicmgr.msc) and confirm whether you have enough CALs installed and activated for the number of users connecting. If you are running Windows Server in RDSH mode without a properly configured RD Licensing server, the system defaults to a grace period. Once that grace period expires, you see exactly this type of event. You should also verify the role configuration: if the server is acting as a Session Host, it must be paired with a valid RD Licensing server that has CALs installed.
If you are not intentionally running Remote Desktop Session Host for multiple users, this error can also appear if the role was mistakenly installed. In that case, removing the RDSH role will stop the licensing enforcement and the shutdown countdown. If you do require RDSH, you must purchase and install the correct number of RDS CALs, then activate them on your RD Licensing server.
There is no supported way to bypass this check. Microsoft enforces licensing compliance at the OS level, and the only remedies are either correcting the role configuration or ensuring that valid CALs are installed and activated. If you ignore the warning, the server will shut down automatically once the countdown expires.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
Domic Vo.