If you received “The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license” error message while connecting to RDS server.Follow the steps
Make sure you have valid RDS license installed and activated.
Go to server manager >> Remote Desktop Service in Left menu
Click on Collections
At top Right , click on Tasks and click Edit Deployment Properties
Go go RD Licensing and select the Remote Desktop licensing mode: