I am Dale Hayter, a Microsoft and VMware certified Technical Consultant.

My blog has been built up over the years from my experience of working on an IT helpdesk and also from being out on-site.

2012 RDS Server – The Remote Desktop Session Host server does not have a Remote Desktop License Server Specified

Had an issue this morning where a 2012 RDS server was complaining that it did not have a Remote Desktop license server specified although it did. The full error was :

Event ID : 1130
Source : TerminalServices-RemoteConnectionManager

The 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.


RDS2012

Querying the RDS configuration reveals a Licensing server is specified.

RDS2012-2

Checking the licensing configuration we can see that the licenses are installed but not being issued.

RDS2012-5

The first step I carried out is to delete the grace period licensing. In a lot of cases this will cure the issue and it will start issuing licenses. To do this go into Regedit and drill down to :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
RDS2012-3

We want to delete the entry on the right for the L$RTMTIMEBOMB key. However if you try and delete it you might find you do not have permissions and get the error below.

Unable to delete all specified values.
RDS2012-7

To delete the key we need to take ownership of the key and then give ourselves full permission.

Right click on the GracePeriod folder and click permissions.

RDS2012-8

Click on the Advanced button.

RDS2012-9

At the top of the Advanced Security settings window click Change next to the owner.

RDS2012-10

Type in Domain Admins or the name of your user. Whichever you prefer. Then click ok.

RDS2012-11

Click Ok.

RDS2012-12

Now give the administrators full access. Then click ok.

RDS2012-9

Now right click on the L$RTMTIMEBOMB value and click delete.

RDS2012-4

Click Yes when prompted to confirm.

RDS2012-6

Now reboot the server and get a user to login. Once logged in check Remote Desktop Licensing Manager to see if the licenses are being allocated like shown below.

RDS2012-16

In my scenario this morning this did not resolve it for me. The server still complained about no licensing server being set. I then queried WMI to see what was set on the server.

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.GetSpecifiedLicenseServerList()
RDS2012-13

As you can see there is no licensing server specified in the SpecifiedLSList. We can set this manually using a similar command.

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.SetSpecifiedLicenseServerList("Licenseserver.yourdomain.com")
RDS2012-14

Running the Get query now shows the value set.

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.GetSpecifiedLicenseServerList()
RDS2012-15

Now my licenses started to issue. Also no further reboot was needed.

Source : 360ict.nl