Skip to content

Instantly share code, notes, and snippets.

@aduzsardi
Created July 25, 2017 08:41
Show Gist options
  • Save aduzsardi/83b711b961b8058256077d4bcb4cb73e to your computer and use it in GitHub Desktop.
Save aduzsardi/83b711b961b8058256077d4bcb4cb73e to your computer and use it in GitHub Desktop.
Licensing mode for the Remote Desktop Session Host is not configured
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment