Welcome to Microsoft Q&A!
Thank you for providing the details of the issue.
Based on the error message, it appears that the server is configured as a Remote Desktop Session Host (RDSH) but is unable to obtain a valid Remote Desktop Services (RDS) license. This can occur for several reasons, such as:
- No RD License Server is configured.
- The RD License Server is unavailable or cannot be reached.
- The licensing mode (Per User or Per Device) is configured incorrectly.
- The Remote Desktop Licensing service is not running.
- The RDS licensing grace period has expired.
- The License Server is configured with an incorrect hostname or IP address.
To help identify the root cause, I recommend the following troubleshooting steps:
- Connect to the server using an administrative session, which temporarily bypasses standard RDS licensing checks:
mstsc /admin
- Open RD Licensing Diagnoser and review any errors or warnings that are reported.
- Verify the following:
- The correct RD License Server is specified.
- The licensing mode matches the installed CALs (Per User or Per Device).
- The Remote Desktop Licensing service is running.
- If the License Server is configured through Group Policy, verify the settings under:
Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Licensing
- Confirm that the RD Session Host can communicate with the License Server. In some cases, I have seen this issue occur when the License Server was configured with a public IP address instead of its internal FQDN or local IP address and updating the configuration to use the server's internal address resolved the issue.
- If the server is intended only for administrative access and does not require RDS sessions for users, you may also review whether the Remote Desktop Session Host role is needed.
If you find this information helpful, please click Accept Answer.
Thank you for using Microsoft Q&A.