You may encounter the following error message when trying to connect to a Windows Server 2012 Remote Desktop Session Host (RDSH) server:
The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.
Please contact the server administrator.
When this error appears, no Remote Desktop connections may be made to the server. This error message may appear even if previous Remote Desktop connections to the server were successful and no recent changes were made to the RDSH server.
A Windows hotfix is available on the Microsoft website and be downloaded here (external link).
The first step in troubleshooting the issue should be to run the RD Licensing Diagnoser tool from Server Manager. This tool checks the existing Remote Desktop licensing configuration for problems and provides troubleshooting suggestions for any that it finds. If the RD Licensing Diagnoser reports the correct licensing information and finds no problems, the issue may be caused by an apparent bug in Windows Server 2012 in which the RDSH server fails to contact the licensing server after the 120-day licensing grace period expires.
If the licensing configuration appears to be correct and the RD Licensing Diagnoser reports no problems, please perform the following steps: