Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Windows Server 2012 R2 / The Remote Desktop Session Host Server Does Not Have a Remote Desktop License Server Specified

March 14, 2016 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:

Get-RDLicenseConfiguration

Get-RDLicenseConfiguration

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

L$RTMTIMEBOMB

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
$obj.GetSpecifiedLicenseServerList()

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
$obj.SetSpecifiedLicenseServerList("lon-rdslic.woshub.com")

wmi setSpecifiedLicenseServerList

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

5 comments
0
Facebook Twitter Google + Pinterest
previous post
How To Configure DHCP Server Using PowerShell
next post
View Check Disk (CHKDSK) Results in Windows 10

Related Reading

Installing a Let’s Encrypt Free SSL Certificate on...

April 19, 2018

Installing KMS Server on Windows Server 2012 R2

April 11, 2018

How to Clear Pagefile.sys at Shutdown in Windows...

April 10, 2018

SMB 1.0 Support in Windows Server 2012 R2...

April 2, 2018

How to Install .NET Framework 3.5 on Windows...

February 20, 2018

5 comments

Tony March 30, 2016 - 9:10 am

Hi, Great run through.
I had this issue and this worked for me, however I am in the process of moving to a new licensing server and although this works when initially defining a licensing server when I try and update the SetSpecifiedLicenseServerList parameter with the new server details
$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.SetSpecifiedLicenseServerList("My-New-Server.Name ")
I get the following error. Do you need to run a different command to update?
Exception calling "SetSpecifiedLicenseServerList" : "Invalid operation "
At line:1 char:1
+ $obj.SetSpecifiedLicenseServerList("My-New-Server.Name")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WMIMethodException
 
Any help would be appreciated.
Tony

Reply
admin April 4, 2016 - 10:03 am

Hi,

Are you running this command in elevated mode on the server with RDSH role?

Reply
Dave January 6, 2017 - 3:56 pm

I tried the allow full permissions of grace period that is detailed above but got access denied. I went into same security > advanced option for grace period, changed owner to admin account and then was able to delete the timebomb entry, rebooted and now have 120 days to figure out why the license won’t load (but that’s another story).

Great detail that helped me out.

Reply
Richard January 12, 2017 - 2:53 am

THANK-YOU! This worked for me also.

Reply
Flo January 17, 2017 - 4:46 pm

Where did you set the license server?

On the RDS Server for shure.

…but did you also set it on the license server itself?

I´m asking beacause my RDS Server has the license Server set but nevertheless is in grace period. Also after i deleted the timebomb;) key and rebooted.

$obj = gwmi -namespace “Root/CIMV2/TerminalServices” Win32_TerminalServiceSetting
$obj.SetSpecifiedLicenseServerList(“lon-rdslic.woshub.com”)

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • How to increase KMS current count (count is insufficient)

    April 20, 2018
  • Installing a Let’s Encrypt Free SSL Certificate on IIS in Windows Server 2012 R2

    April 19, 2018
  • How to Disable “Open File Security Warnings” in Windows 10, 8 and 7

    April 18, 2018
  • Outlook 2016: Manual Setup Exchange Account

    April 16, 2018
  • Cannot Access SMB Network Shares after Windows 10 1709 Upgrade

    April 12, 2018
  • Installing KMS Server on Windows Server 2012 R2

    April 11, 2018
  • How to Clear Pagefile.sys at Shutdown in Windows 10 / 8 / 7

    April 10, 2018
  • Searching AD Groups and Users using Wildcards

    April 5, 2018
  • How to access VMFS Datastore from Linux, Windows and ESXi

    April 3, 2018
  • SMB 1.0 Support in Windows Server 2012 R2 / Windows Server 2016

    April 2, 2018
woshub.com

Follow us

  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Installing SFTP (SSH FTP) Server on Windows Server 2012 R2
  • FTP Server with User Isolation on Windows Server 2012 R2
  • Windows Server 2012 R2 Licensing and Virtualization
  • User Profile Disks in Windows Server 2012 R2 RDS
  • How to Install and Configure SMTP Server on Windows Server 2012 R2
  • SSO (Single Sign-On) Authentication on RDS
  • RDS Shadow: How to Connect to a User Session in Windows Server 2012 R2
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top