- If you have RDS deployment, did you create a session collection and make your RDSH server part of the collection?
- In Server Manager -- RDS -- Overview -- Deployment Overview -- Tasks -- Edit Deployment Properties -- RD Licensing tab, did you set the Licensing mode and add the FQDN of your RD Licensing server? https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/troubleshoot/rdp-error-no-licenses-available#configure-the-rd-licensing-service
3.Did you configure the licensing mode and licensing server name using group policy? For example, you could use gpedit.msc and configure the below settings:
Computer Configuration\ Administrative Templates\ Windows Components\ Remote Desktop Services\ Remote Desktop Session Host\ Licensing
Use the specified Remote Desktop license server Enabled
Set the Remote Desktop licensing mode Enabled
If the issue still insists, please try to modify the registry about MSLicensing and GracePeriod just like in the link below.
https://windowsreport.com/remote-session-was-disconnected/
Hope this helps and please help to accept as Answer if the response is useful.
Best Regards,
Carl