Category Archives: VDI And Terminal Servers

Remote Desktop Session Host

Windows Server 2012 Remote Desktop Session Host enabling is no longer took place using GUI but rather using Power Shell as follows:

  1. Open an elevated Windows PowerShell prompt
  2. Type the following command on the PS prompt and press Enter:$obj = gwmi -namespace “Root/CIMV2/TerminalServices” Win32_TerminalServiceSetting
  3. Run the following command to set the licensing mode:
    Note: Value = 2 for Per device, Value = 4 for Per User$obj.ChangeMode(value)
  4. Run the following command to replace the machine name with License Server:$obj.SetSpecifiedLicenseServerList(“LicServer”)
  5. Run the following command to verify the settings that are configured using above mentioned steps:$obj.GetSpecifiedLicenseServerList()