Windows Server 2022 RDS License Error

Sunshine Xiong 0 Reputation points
2024-08-07T17:50:20.24+00:00

I have a 2022 Windows Server recently installed. I was able to fix through registry keys the CAL license to be "per user", however my main issue now is that the license diagnose says "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."

For context, the license manager is on the same PC as the server. The CAL License is activated as we can see. User's image

Tried searching online for answers, but seems like it does not give us the solution yet. Any redirection or solution would be greatly appreciated!

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,596 questions
Windows Server Licensing
Windows Server Licensing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Licensing: Rules, regulations, and restrictions that define how software can be used and distributed.
62 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Erick Moreno 330 Reputation points
    2024-08-07T18:07:09.96+00:00

    Please show me the results for this:

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

    Please confirm that your server is member of the group: "RDS Endpoint Servers"


  2. Karlie Weng 18,521 Reputation points Microsoft Vendor
    2024-08-08T01:58:43.72+00:00

    Hello,

    To clarify, is your PC part of a workgroup or a domain? If you're using domain-joined servers for your Remote Desktop Services (RDS) deployment, you can utilize both Per User and Per Device Client Access Licenses (CALs). However, if you're using workgroup servers for your RDS deployment, you must use Per Device CALs. In this scenario, Per User CALs are not permitted.

    The value "4" corresponds to "Per User" licensing mode, as LicensingMode | Microsoft Learn documentation, so the license mode setting appears to be correct.

    Under the registry key HKLM\Software\Policies\Microsoft\WindowsNT\TerminalServices, make sure to specify the license server.

    You might also need to configure the license server through Group Policy:

    • Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Licensing.

    In addition, you may want to reactivate the Remote Desktop Licensing server:

    1. Open the Registry Editor and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM.
    2. On the Registry menu, select "Export Registry File".
    3. Enter "exported-Certificate" in the File name box, then click "Save".
    4. Right-click and delete the following values:
      • Certificate
      • X509 Certificate
      • X509 Certificate ID
      • X509 Certificate2

    For further guidance, refer to these resources:

    Guidance for troubleshooting RDS Licensing - Windows Server | Microsoft Learn

    Cannot connect to RDS because no RD Licensing servers are available - Windows Server | Microsoft Learn

    These steps should help you resolve any licensing issues you're experiencing with RDS.


    If the Answer is helpful, please click Accept Answer and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.