Hello,
Thank you for your question and reaching out. I can understand you are having issues related to remote desktop issue
Remote Desktop Session Host (RDSH) server.
check that the license server is configured correctly in the RDSH server settings.
Ensure that you have the appropriate RDS Client Access Licenses (CALs) installed on the license server, and that they are valid for the version of Windows Server you are using (in this case, Windows Server 2016).
ALso check
licenses installed on the license server are specifically for Remote Desktop Services (RDS CALs) and not for other services or products.
Use the Remote Desktop Licensing Diagnoser tool to check for common licensing issues.
and see it helps.
Thank you
--If the reply is helpful, please Upvote and Accept as answer--