RDS 2012 R2 problem when configuring RD Licensing

Hello folks,

Yesterday, a costumer had problems in two RDS independent servers because the RD Licensing Diagnoser on the two servers show that the installed licenses was not available and also the licensing mode was not setup.

Here is the screen capture with the warning:

rds_license_error

How I solved it? Doing the same that from the GUI but with powershell.

Follow this article:

http://blogs.technet.com/b/supportingwindows/archive/2013/09/20/rd-licensing-configuration-on-windows-server-2012.aspx

Note The following commands must be ran from an Administrative PowerShell prompt.

  • To configure the license server on RDSH/RDVH:
  • $obj = gwmi -namespace “Root/CIMV2/TerminalServices” Win32_TerminalServiceSetting
  • $obj.SetSpecifiedLicenseServerList(“License.contoso.com”)

Note “License” is the name of the License Server in the environment

To verify the license server configuration on RDSH/RDVH:

  • $obj = gwmi -namespace “Root/CIMV2/TerminalServices” Win32_TerminalServiceSetting
  • $obj.GetSpecifiedLicenseServerList()

To change the licensing mode on RDSH/RDVH:

  • $obj = gwmi -namespace “Root/CIMV2/TerminalServices” Win32_TerminalServiceSetting
  • $obj.ChangeMode(value) – Value can be 2 – per Device, 4 – Per user

To validate the licensing mode:

  • $obj = gwmi -namespace “Root/CIMV2/TerminalServices” Win32_TerminalServiceSetting
  • $obj. LicensingType
  • $obj.LicensingName

Regards!