Remote desktop license expired server 2012 r2

If you have installed an RDS Server 2016 for testing purposes and the RDS licensing grace period has expired, then continue reading below to learn how to reset the 120 days grace period. As you may know when you install the RDS Server 2016 you have 120 days to install the RD client access licenses [RD CALs], otherwise users will no longer be able to establish RDP sessions on the RD Session Host server, with error "The remote desktop session was disconnected because there are no Remote Desktop License servers available to provide a license".

How to Reset RDS Licensing Grace Period on Server 2012 or 2016. *

* Important: Apply the instructions below, only if you 're using the RDS Server 2016 on a testing environment. If you want the want to use the RDS Server on a production environment then proceed and buy RD CALs.

To extend the 120 days Grace Period on RDS Licensing Server:

1. Open the Registry Editor and navigate at the following key:

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

2. Right click at the 'GracePeriod' key and select Permissions.

3. Then click Advanced.

4. Select the Administrators object and click Edit.

5. Change the permissions to Full Control and click OK.

6. Right click at "L$RTMTIMEBOMB…" value and select Delete.

7. Close the Registry Editor and restart the RDS Server.

That's all folks! Did it work for you?
Please leave a comment in the comment section below or even better: like and share this blog post in the social networks to help spread the word about this solution.

If this article was useful for you, please consider supporting us by making a donation. Even $1 can a make a huge difference for us.

In this article, we’ll look at several common issues related to RDS licensing, when RDP clients cannot connect to Windows Server with the Remote Desktop Services Host role installed.

Licensing errors when connecting RDP clients to an RDS host may appear if:

  • The RDS licensing server from which you want to get client licenses [RDS CALs] is not specified on the Remote Desktop Services settings;
  • The RDS licensing server has run out of available CALs;
  • The RDP client tries to connect with an expired temporary RDS license;

Remote session was disconnected because there are no Remote Desktop client access licenses available for this computer

First, let’s look at an error related to clients getting RDS CALs from the license server.

Remote session was disconnected because there are no Remote Desktop client access licenses available for this computer. Please contact the server administrator.

Connect to the RDSH server in administrative mode [mstsc.exe /admin] and run the RD Licensing Diagnoser tools. If you have everything configured correctly, you should see the name of the RDS licensing server, and the type of license [Per User/Per Device].

Connect to the RDS license server using the RD Licensing Manager console [licmgr.exe] and check that you have available free licenses of the required type [Per User or Per Device]. If you run out of free RDS CALs, you need to purchase a new CAL pack, wait for someone to release the license, or revoke unused licenses directly from the console [right click on the computer/user and select Revoke License].

In this example, you can see that there are free RDS CALs, and they are issued to users [Issued = 44].

Most likely, in this case the client computer is trying to connect to your RDSH server with an expired temporary RDP license [if your RDS license server was unavailable when the client first connected, the client was issued a temporary RDP license for 180 days]. In this case, you need to reset this expired license in the registry on the client device.

Do the following on the client computer [Windows 10 in this example]:

  1. Start the Registry Editor [regedit.exe];
  2. Remove the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing;
  3. Close the registry editor and run the mstsc.exe [Remote Desktop Connection] as as administrator;
  4. Connect to your RDS server. In this case, the MSLicensing reg key will be automatically re-created, and the computer will receive a new RDP license.

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

One of the customer 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 CALs had been activated.

When a user tries to connect to the terminal server via RDP, 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.

Connect to the server console in administrative mode [mstsc /admin]. Open the Server Manager, and go to the RDS settings [Remote Desktop Services -> Deployment Overview -> Tasks -> Edit Deployment Properties]. Make sure that the correct Remote Desktop license server and RDS CAL type [Per Device or Per User] are specified in the RDSH configuration.

You can also check the RDS licensing server settings via PowerShell:

Get-RDLicenseConfiguration

As you can see, LicenseServer is specified in the configuration, and the PerUser licensing type is used.

Check that the following ports are not blocked by firewalls when accessing from RDSH host to RDS LicenseingServer: TCP 135, UDP 137, UDP 138, TCP 139, TCP 445, TCP 49152–65535 [RPC range]. If the RDS License server is not available, the License Diagnoser will display an error:

License server rdslic_hostname is not available. This could be caused by network connectivity problems, the Remote Desktop Licensing service is stopped on the license server, or RD Licensing isn't available.

Reset 120 Days RDS Grace Period [L$RTMTIMEBOMB]

Take a close look at the events in the Event Viewer on the RDS host. Perhaps there is an error like this:

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.

The RD License Diagnoser will most likely also display an error:

The grace period for the Remote Desktop Session Host server has expired, but the RD Session Host server hasn't been configured with any license servers. Connections to the RD Session Host server will be denied unless a license server is configured for the RD Session Host server.

This means that your grace period for the RDSH server has expired, and you need to extend the grace mode, or activate the host on a RDS license server.

The number of days before the end of the RDS Grace Period can be found from the elevated command prompt:

wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE [__CLASS !=""] CALL GetGracePeriodDays

Note that DaysLeft = 0. This means that the Grace Period has expired on this RDSH host.

To extend the grace period in RDS, you need to remove the registry parameter on the server, which determines the grace period licensing time. The date that determines the RDS grace period for the server is stored in the reg_binary registry parameter L$RTMTIMEBOMB [quite a funny name –TIME BOMB….] located in the following registry key:

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

You have to remove the L$RTMTIMEBOMB parameter from the registry. However, the administrator does not have enough permissions to do this.

Unable to delete all specified values.

To remove this registry parameter, you need to open the parent key permissions and grant your account the privileges of the key owner. Then set the Full Control permissions for Administrators group [I won’t describe the process in detail].

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

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

If the RDS CAL is not received, check if there is an event in the Event Viewer:

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.

Using this PowerShell command, make sure if the RDS licensing server is set:

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.GetSpecifiedLicenseServerList[]

As you can see, the RDS licensing server is not set [SpecifiedLSList is empty]. Force set the RD licensing server with the following command:

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.SetSpecifiedLicenseServerList["lon-rdslic.woshub.com"]

The RDS host will now be able to obtain licenses from the RDS Licensing server and issue them to your RDP users.

Video liên quan

Chủ Đề