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.
Querying the RDS configuration reveals a Licensing server is specified.
![RDS2012-2](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-2.jpg)
Checking the licensing configuration we can see that the licenses are installed but not being issued.
![RDS2012-5](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-5-700x73.jpg)
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](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-3.jpg)
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](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-7.jpg)
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](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-8.jpg)
Click on the Advanced button.
![RDS2012-9](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-9.jpg)
At the top of the Advanced Security settings window click Change next to the owner.
![RDS2012-10](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-10-700x472.jpg)
Type in Domain Admins or the name of your user. Whichever you prefer. Then click ok.
![RDS2012-11](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-11.jpg)
Click Ok.
![RDS2012-12](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-12-700x472.jpg)
Now give the administrators full access. Then click ok.
![RDS2012-9](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-9.jpg)
Now right click on the L$RTMTIMEBOMB value and click delete.
![RDS2012-4](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-4.jpg)
Click Yes when prompted to confirm.
![RDS2012-6](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-6.jpg)
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](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-16-700x118.jpg)
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](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-13-700x179.jpg)
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](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-14-700x178.jpg)
Running the Get query now shows the value set.
$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.GetSpecifiedLicenseServerList()
![RDS2012-15](https://www.blackforce.co.uk/wp-content/uploads/2014/02/RDS2012-15-700x182.jpg)
Now my licenses started to issue. Also no further reboot was needed.
Source : 360ict.nl