Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Licensing Mode for Remote Desktop Session Host is not Configured

by | Nov 6, 2020

The error “Licensing Mode for Remote Desktop Session Host is not Configured” often triggers triggers when the RDS host is running in grace period.

As a part of our Server Management Services, we help our Customers to fix Windows related errors regularly.

Let us today discuss the possible causes and fixes for this error.

What causes the error “Licensing Mode for Remote Desktop Session Host is not Configured” ?

While trying to configure a new RDSH node in the RDS Windows Server we may face a warning popup message as shown below:

licensing mode for the remote desktop session host is not configured

From the error message, the Remote Desktop Session(RDS) Host is running in the grace period (during the grace period of 120 days, we can use the Remote Desktop Session Host without activating RDS licenses).

When the grace period ends, users will not be able to connect to the host, and an error will appear in the tray:

Remote Desktop Services will stop working because this computer is past grace period and has not contacted at least a valid Windows Server 2012 license server. Click this message to open RD Session Host Server Configuration to use Licensing Diagnosis.

How to fix the error “Licensing Mode for Remote Desktop Session Host is not Configured” ?

We can have an accurate diagnostic of the problem with the RD Licensing Diagnoser tool— lsdiag.msc.

This is accessible from Administrative Tools -> Remote Desktop Services -> RD Licensing Diagnoser.  Most probably, it will shows the following error:

Licenses are not available for the Remote Desktop Session Host server, and RD Licensing Diagnoser has identified licensing problem for the RD Session Host server.
Licensing mode for the Remote Desktop Session Host is not configured.
The Remote Desktop Session Host server is within its grace period, but the Session Host server has not been configured with any license server.

It means that the administrator do not specify the RDS Licensing Server and/or the licensing mode.

It should be done even after specifying the licensing type while deploying the RDS host.

We can check whether the RDS license server is set using the following PowerShell commands:

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

If the RDS license server is not set,  we can specify it with the command:

$obj.SetSpecifiedLicenseServerList("uk-rdslic1.woshub.com")

If we do not remember which server with the RD License role installed on, we can display a list of all RDS Licensing servers registered in the Active Directory domain using the Get-ADObject cmdlet from the PowerShell ActiveDirectory module:

Get-ADObject -Filter {objectClass -eq 'serviceConnectionPoint' -and Name -eq 'TermServLicensing'}

Force set the RDS licensing mode using the registry:

In the registry key HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\Licensing Core change the value of the DWORD parameter with the name LicensingMode from 5 to:

  • 2 – if it uses Per Device RDS licensing mode
  • 4 – if it uses Per User licensing

We can change the registry setting manually through regedit.exe or the following PowerShell commands from the registry management module:

# Specify the RDS licensing type: 2 - Per Device CAL, 4 - Per User CAL
$RDSCALMode = 2
# RDS Licensing host name
$RDSlicServer = "uk-rdslic1.woshub.com"
# Set the server name and type of licensing in the registry
New-Item "HKLM:\SYSTEM\CurrentControlSet\Services\TermService\Parameters\LicenseServers"
New-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Services\TermService\Parameters\LicenseServers" -Name SpecifiedLicenseServers -Value $RDSlicServer -PropertyType "MultiString"
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\Licensing Core\" -Name "LicensingMode" -Value $RDSCALMode

After we have made the changes, we can restart the RDSH server.

We can also configure the RDS license server parameters using GPO (a local or a domain policy). If the RDS server is in a workgroup, use the local Group Policy Editor gpedit.msc.

Go to Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Licensing.

We need two policies:

  • Use the specified Remote Desktop license servers – enable the policy and specify the RDS license server address. If the license server is running on the same server, type 127.0.0.1
  • Set the Remote Desktop licensing mode – select the licensing mode. For example, Per User.

After restarting the server, open the RD Licensing Diagnoser and check the number of available RDS licenses and the licensing mode.

If it uses a firewall on the network, we must open the following ports from the RDSH host to the RDS licensing server – TCP:135, UDP:137, UDP:138, TCP:139, TCP:445, TCP:49152–65535 (RPC range).

We can check for open ports using the Test-NetConnection cmdlet. We can open the closed ports on the local Windows Defender Firewall using the PowerShell cmdlets from the NetSecurity module.

[Need any further assistance in fixing licensing mode for the remote desktop session host? – We’re available 24*7]

Conclusion

In short, the error “Licensing Mode for Remote Desktop Session Host is not Configured” often triggers triggers when the RDS host is running in grace period.Today, we saw how our Support Engineers fix this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF