Wednesday 12 February 2020

Licensing Mode for Remote Desktop Session Host is not Configured


Issue

You run into the below issue (fig. 1) even after configuring RDS Licensing Server (fig. 2)

Licensing Mode for Remote Desktop Session Host is not Configured

The Remote Desktop Session Host server is within its grace period, but the RD Session Host server has not been configured with any license server.

fig.1


fig. 2



Troubleshooting

You can check whether the license server is set using the following PowerShell commands:

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.GetSpecifiedLicenseServerList()



No value returned in our case in 'SpecifiedLSList' - meaning license server is not set though we set this on fig. 2.

Fix

Set the RDS license server parameters using GPO (a local or a domain policy).

We use Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Licensing.

Required settings are :

1. Use the specified Remote Desktop license servers (fig. 3) - enable the policy and specify the RDS license server address.

2. Set the Remote Desktop licensing mode (fig. 4) -  select the licensing mode. In our case, it is Per User.

fig. 3


fig. 4



In my case the issue got fixed without a restart (I used local GPO), you may try a reboot as well.



You can also run the previous command to see the license servers.

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.GetSpecifiedLicenseServerList()




Cheers!!

1 comment:


  1. The information which you have provided in this blog is really useful to everyone. Thanks for sharing.
    Cisco Consulting Services
    Cisco Consultancy

    ReplyDelete