When attempting to configure a brand new host within the RDS farm working Windows Server 2012 R2, I encountered the next warning popup message within the system tray:
Remote Desktop Service will cease working in 104 days.
Obviously, RDS Host is working within the licensing grace interval (I’ve already an identical downside, however the scenario is a bit totally different right here).
For extra correct diagnostics of the issue, it’s essential to run the RD Licensing Diagnoser. Its window exhibits the next error:
Licensing mode for the Remote Desktop Session Host is not configured.
As you may see, there aren’t any licenses obtainable to shoppers, because the licensing mode is not set.
It signifies that the administrator has not chosen the and/or the licensing mode. It ought to be completed even when the licensing kind has already been specified when deploying the RDS host.
You can verify whether or not the license server is set utilizing the next PowerShell instructions:
$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
Note. Get-RDLicenseConfiguration cmdlet could return totally different, inaccurate information.
If the lRDS icense server is not set, you may specify it utilizing this command:
There are a number of strategies to power set the RDS licensing mode.
Using the registry:
In the registry key HKLMSYSTEMCurrentControlSetControlTerminal ServerRCMLicensing Core change the worth of the DWORD parameter with the title LicensingMode from 5 to:
- 2 – if Per Device RDS licensing mode is used;
- four – if Per User licensing is used.
After you’ve gotten made the modifications, restart your RDSH server.
You also can configure the RDS license server parameters utilizing GPO (an area or a site coverage). Suppose, the server is not within the area. Let’s use the native editor gpedit.msc. Go to Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Licensing.
We want two insurance policies:
- Use the desired Remote Desktop license servers – allow the coverage and specify the RDS license server handle. If the license server is working on the identical server, kind 127.zero.zero.1;
- Set the Remote Desktop licensing mode – choose the licensing mode. In our case, it is Per User.
After restarting your server, open the RD Licensing Diagnoser and verify the variety of obtainable licenses and the licensing mode you’ve gotten chosen.
Note. If your RDS server is in a workgroup, the licensing report is not generated, though the terminal licenses themselves are issued to shoppers / gadgets accurately. You should monitor the variety of the RDS CAL left your self.