Hello Agatha B,
Thank you for posting in Microsoft Community forum.
From your error message,you seem not configure license server correctly.
You can refer to the following steps:
Step 1:Depending on whether you want to configure Group Policy centrally from your domain or locally on each session host:
- Open the Group Policy Management Console (GPMC) and create or edit a policy that targets your session hosts.
- Open the Local Group Policy Editor on the session host.
Step 2:Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Licensing.
Step 3: In the policy list, right-click Use the specified Remote Desktop license servers, and then select Properties.
Step 4: Select Enabled, and then enter the name(FQDN) or the IP of the license server under License servers to use. If you have more than one license server, use commas to separate their names.
Step 5: Select OK.
Step 6: In the policy list, right-click Set the Remote Desktop licensing mode, and then select Properties.
Step 7: Select Enabled.
Step 8: Under Specify the licensing mode for the Remote Desktop Session Host server, select Per Device or Per User, as appropriate for your deployment.
After configuration, please check the registry.
1.Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
LicensingMode, the value 4 for per user cal,the value 2 for per device cal
2.Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\Licensing Core
LicensingMode the value 4 for per user cal,the value 2 for per device cal
3.Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TermService\Parameters\LicenseServers
add string value: SpecifiedLicenseServers , value data is the FQDN OR IP address of license server
4.Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsNT\Terminal Services,
Add string value LicenseServers to specify a License Server, value data is the FQDN OR IP address of license server
You can also find details in the following link.
License Remote Desktop session hosts | Microsoft Learn
I hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Haijian Shan