Thought of the Day

“A goal is a dream with a deadline.”

Napoleon Hill

Total Pageviews

Friday, November 10, 2017

How to fix RDS 2012r2 error: "Licensing mode for the Remote Desktop Session Host is not configured."


To fix the problem, run the following commands in powershell to set the licensing server properly on the rd session host using the WMI CIM provider:

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting $obj. SetSpecifiedLicenseServerList("licserver.domain.local") Then, go into the registry and manually set the licensing mode: HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\Licensing Core\LicensingMode You need to change the DWORD to 2 for Per Device or 4 for Per User.

Next, reboot the system. The changes made previously will report everything properly and the RDS host will now recognize the licensing configuration.