Remote Desktop Licencing

A bit of background, I sort of inhereted a mess of a remote desktop farm. We have licences purchased through SPLA but long story short, nobody bothered to apply them.


It was actually common practise to just reset the 120 RDP grace period when it ran out.. I know, obviously this needed doing properly.

I had never done this before so I won't bore with the details of attempting to figure out how SPLA worked and how I had to apply the CAL's to the 2012 licencing server I had built. It was a nightmare but I got there in the end.

The major problems begean when the RD licencing diagnoser persistantly told me licencing had not been configured, even though it clearly had. 

Turns out the server manager GUI wasn't setting values in the registry as it should have done, so with a bit of powershell magic and some fiddling in the registry I finally got it to work, here's what I did

Powershell:

$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj. SetSpecifiedLicenseServerList("CLIENT-SRV-LS01.MSAClient.LOCAL")

Registry Value:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Termanal Server\Licencing Core\LicencingMode 

Change the value to 2 for cal per device mode, 4 for cal per user mode.

And that's it!

0 comments: Post a Comment