Posted on March 14, 2016 · Posted in Windows Server 2012 R2

The Remote Desktop Session Host Server Does Not Have a Remote Desktop License Server Specified

One of the clients has encountered a problem with the deployed farm of RDS servers on Windows Server 2012 R2. For some reason, the RDS server has stopped issuing terminal licenses to users, though the license server role had been installed and configured, and RDP CAL had been activated.

When a user tries to connect to the terminal server, the following error appears:

The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.

Please contact the server administrator.

The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.

In this case, the server registers this error:

Event ID : 1130
Source : TerminalServices-RemoteConnectionManagerThe Remote Desktop Session Host server does not have a Remote Desktop license server specified. To specify a license server for the Remote Desktop Session Host server, use the Remote Desktop Session Host Configuration tool.

Event ID : 1130 Source : TerminalServices-RemoteConnectionManager

Using Server Manager, let’s make sure that the Remote Desktop license server is specified in the RDSH configuration:

rds deployment properties

You can also check the license server configuration in PowerShell:



As we can see, the server is specified and PerUser licensing mode is used.

RD Licensing Diagnoser also doesn’t show any problems with RD server configuration and licenses.

rd licensing diagnoser

Using RD Licensing Manager (licmgr.exe), make sure that there are free licenses on the server, but on some reason they are not issued to the users (Issued = 0).

rds license issued

The further search in the event log allowed to detect the following event:

EventID: 1128
Source: TerminalServices-RemoteConnectionManagerThe RD Licensing grace period has expired and the service has not registered with a license server with installed licenses. A RD Licensing server is required for continuous operation. A Remote Desktop Session Host server can operate without a license server for 120 days after initial start up.

EventID: 1128

It appears that the RDSH server decided that the grace period of using the terminal server is over (120 days), and either it has to be extended or the RDS licenses have to be activated on a full-version server. It seems to be an RDS bug in Windows Server 2012.

You can find out the current value of RDS Grace Period with this command:

wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL GetGracePeriodDayswmic-Win32_TerminalServiceSetting-GetGracePeriodDays

To solve this problem, you have to remove the key that determines the grace period of licensing on the RDS server. The date that determines the grace period for the server is stored in L$RTMTIMEBOMB key (quite a funny name — TIME BOMB …. ; )  located in the following registry branch:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod


You have to remove L$RTMTIMEBOMB key. However, the administrator doesn’t have relevant privileges to do it.

Unable to delete all specified values.

Unable to delete all specified values.

To remove this key, grant your account the privileges of the branch owner, and then the right to make any changes.

L$RTMTIMEBOMB  key permissions

Now, right-click L$RTMTIMEBOMB key and delete it.

delete key

Restart your server, and connect to it using RDP client. Make sure that the license has been issued successfully in Remote Desktop Licensing Manager.

rds licensing manager

However, I didn’t have it done at once. Using this PowerShell command, make sure if the licensing server is set:

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting

wmi GetSpecifiedLicenseServerList

As you can see, the licensing server is not set (SpecifiedLSList is empty). Set the RD licensing server with the following command.

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting

wmi setSpecifiedLicenseServerList

After it had been done, the server started issuing licenses to RD clients.

Related Articles