Using a VMware template, I recently deployed the 9th Windows 2012 Remote Desktop Services server in our RDS collection. After adding the new host server to the collection and attempting to launch a RemoteApp session, I received the following error:
The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license. Please contact the server administrator.
Assuming your licensing configuration is valid and you have licenses available, if you receive the above error the problem is likely an expired “GracePeriod” registry key. In our case, this “GracePeriod” key found its way into the registry at some point when this template was built. And since it was built many months ago, this grace period has since expired. You’d think RDS would be smart enough to see the license server in the domain and act accordingly, in this case, talk to the license server, confirm there are available licenses and then either ignore the grace period key or remove it. But nope, it just gives you the above error instead.
Lucky for you the fix is easy. You simply delete this key manually.
Open up the registry editor and browse to:
You should see a key called “GracePeriod”. Right-click this key and then click “Permissions.” Assign yourself (or Administrators, assuming you are part of that group) “Full Control” and then DELETE the key. You won’t be able to delete it unless you give yourself at least read/write permission (Full Control is just expedient). Now reboot the server and everything will be right as rain.
If you deploy your RDS hosts via a template like I do, it’s probably a good idea to delete the GracePeriod key from the registry in that template. Because you know you will forget to do this next time!
Thanks to RobBot for providing the solution.