17 lug 2017

RDS 2012 R2 error: “Licensing mode for the Remote Desktop Session Host is not configured.

#Note
RDS 2012 R2 Error: “Licensing mode for the Remote Desktop Session Host is not configured.

#Product aftected
Windows Server 2012 - Windows Server 2012 R2

#Issue
The error description reads (on RD Licensing Diagnoser): “Licensing mode for the Remote Desktop Session Host is not configured.”

#Solution
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("licenseserver.domain.local")

and then, go into the registry and 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

Reboot

Nessun commento:

Posta un commento