Remove RDS CALs from an RDS License Server
29 December 2020If you want to transfer your RDS CALs from one Remote Desktop Connection license server to another, you can remove the installed CAL license pack from the license server using PowerShell.
Using the following cmdlet, you can list all the RDS CAL packages installed on the server:
1 |
Get-WmiObject Win32_TSLicenseKeyPack | select-object KeyPackId,ProductVersion,TypeAndModel,AvailableLicenses,IssuedLicenses | ft |
Find the KeyPackId value for the RDS CAL package that you want to remove and run the following command:
1 |
wmic /namespace:\\root\CIMV2 PATH Win32_TSLicenseKeyPack CALL UninstallLicenseKeyPackWithId votre-KeyPackId |
You can also completely remove all CALs by recreating the RDS license database. To do this, stop the Remote Desktop Services licensing service:
1 |
Stop-Service TermServLicensing |
Rename the file C:\Windows\System32\lserver\TLSLic.edb to C:\Windows\System32\lserver\TLSLic.edb_old and start the service:
1 |
Start-Service TermServLicensing |
After that, all RDS CALs will be removed and you will need to reactivate them.
Views: 20588