Rahul Sharma

Solutions Architect - Microsoft Dynamics AX | Azure

This is a technology blog covering Microsoft Dynamics 365, Microsoft Azure, IoT, Power Apps, Power BI, .Net, SQL Server, SSRS, and related technologies. Join this blog on facebook {Rahul Sharma}, to start a discussion !!! NOTE: My employer is not responsible for the content published here.

Index | MS Dynamics AX | MS Dynamics CRM
View blog as >> Magazine | Sidebar | Flipcard | Mosaic | Snapshot | Timeslide

Windows Server 2012 - No Remote Desktop License Servers Available

Sometimes on Windows Server 2012 (R2) Remote Desktop farm you start receiving error, "The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license. Please contact the server administrator.", while trying to connect using Remote Desktop or Remote App .

If you think you have all necessary RDS configurations, licenses (CALs) etc in place, the possibility is, the issue might be related to a bug on Remote Desktop Session Host (RDSH) where it will not look to the Remote Desktop Services Licensing Server for CALs when the grace period ends.

Just for the fact, you can still connect to the computer reporting error through admin session, mstsc /admin

The solution to fix this error is to delete a registry key related to Grace Period.

Open registry editor (regedit) and go to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod

Delete GracePeriod key (folder).

Restart the server.

Note: remember you might have to repeat this every 120 days. Also Microsoft has released below hotfix for the same issue, shout out in comments if this works for you.

HotfixNo RDS license when you connect to an RDS farm in Windows Server 2012.

Alternate solution:
If for some reason you don't need more than 2 remote sessions at one point of time, you can remove the Remote Desktop Services role. Windows by default allows 2 RDP sessions to the host machine that doesn't require licensing server.

Join me on facebook and feel free to post your comments / feedback / queries.