none
Uninstall TS Device CALS - Windows 2008 Standard Edition

    Question

  • Hi,

    Please help me to Uninstall Terminal Server Device CALS.

    I have 25 Remote Desktop Services Device CAL but at time of  activation;   by mistake  i Installed 30 and 25 Licenses accordingly.  So i want to reset this license database and re-install /activate the same as my license agreement.

     

    Wednesday, August 17, 2011 12:44 PM

Answers

  • Hi,

    You may uninstall license keypacks, reduce the number of install licenses, etc, using the Remote Desktop License Server WMI Provider.  For example, if you just need to reduce the installed count of one of the packs from 30 to 25 you could use the RemoveLicensesWithIdCount method.  Below is the documentation for the Win32_TSLicenseKeyPack Class:

    http://msdn.microsoft.com/en-us/library/aa383803(v=VS.85).aspx 

    Here are the basic steps for this example.

    1. Get a list of installed keypacks.  Open a administrator command prompt and then enter the following commands:

    wmic /namespace:\\root\CIMV2 PATH Win32_TSLicenseKeyPack>keypacks.txt

    notepad keypacks.txt

    2. Let's say you look at the keypacks.txt file and see that the keypack you want to modify is KeyPackId 3, and that you want to uninstall 5 licenses.  In that case you would enter a command similar to this:

    wmic /namespace:\\root\CIMV2 PATH Win32_TSLicenseKeyPack CALL RemoveLicensesWithIdCount 3,5

    Another example, say you want to uninstall the keypack (id 3 in our example).  Instead of the command in step 2 above, you would enter a command similar to this:

    wmic /namespace:\\root\CIMV2 PATH Win32_TSLicenseKeyPack CALL UninstallLicenseKeyPackWithId 3

    An alternative to the above is to Deactivate the licensing server, uninstall the RD/TS Licensing Role Service/reinstall the Role Service, Activate, and install your license pack(s) again.  This wipes out the license server database and recreates it.  You may need to contact the Clearinghouse if you get an error when re-installing your license pack(s).

    -TP

    Thursday, August 18, 2011 9:31 AM
    Moderator
  • Hi,

     

    You need to contact the Clearinghouse with your license agreement numbers, etc. again and explain to them that the licenses were installed as Per Device and you need re- install /activate. They will help you install them again as Per Device.

     

    The article below can help you find their phone number (it is for windows 2000, but is still relevant, just substitute "Remote Desktop Licensing" when it mentions "Terminal Services Licensing".)

     

    HOW TO: Locate a Phone Number for the Microsoft Clearinghouse

    http://support.microsoft.com/kb/291795

     

    You can also revoke Client Access Licenses (CALs) manually.

    Please refer to the following article for detail:

    http://blogs.msdn.com/b/rds/archive/2008/02/15/manual-revocation-of-client-access-licenses-cals.aspx

     

    More information:

    Configure the Terminal Server Licensing mode

    http://technet.microsoft.com/en-us/library/cc786109(WS.10).aspx

     


    Technology changes life……
    Thursday, August 18, 2011 3:09 AM
    Moderator

All replies

  • Hi,

     

    You need to contact the Clearinghouse with your license agreement numbers, etc. again and explain to them that the licenses were installed as Per Device and you need re- install /activate. They will help you install them again as Per Device.

     

    The article below can help you find their phone number (it is for windows 2000, but is still relevant, just substitute "Remote Desktop Licensing" when it mentions "Terminal Services Licensing".)

     

    HOW TO: Locate a Phone Number for the Microsoft Clearinghouse

    http://support.microsoft.com/kb/291795

     

    You can also revoke Client Access Licenses (CALs) manually.

    Please refer to the following article for detail:

    http://blogs.msdn.com/b/rds/archive/2008/02/15/manual-revocation-of-client-access-licenses-cals.aspx

     

    More information:

    Configure the Terminal Server Licensing mode

    http://technet.microsoft.com/en-us/library/cc786109(WS.10).aspx

     


    Technology changes life……
    Thursday, August 18, 2011 3:09 AM
    Moderator
  • Hi,

    You may uninstall license keypacks, reduce the number of install licenses, etc, using the Remote Desktop License Server WMI Provider.  For example, if you just need to reduce the installed count of one of the packs from 30 to 25 you could use the RemoveLicensesWithIdCount method.  Below is the documentation for the Win32_TSLicenseKeyPack Class:

    http://msdn.microsoft.com/en-us/library/aa383803(v=VS.85).aspx 

    Here are the basic steps for this example.

    1. Get a list of installed keypacks.  Open a administrator command prompt and then enter the following commands:

    wmic /namespace:\\root\CIMV2 PATH Win32_TSLicenseKeyPack>keypacks.txt

    notepad keypacks.txt

    2. Let's say you look at the keypacks.txt file and see that the keypack you want to modify is KeyPackId 3, and that you want to uninstall 5 licenses.  In that case you would enter a command similar to this:

    wmic /namespace:\\root\CIMV2 PATH Win32_TSLicenseKeyPack CALL RemoveLicensesWithIdCount 3,5

    Another example, say you want to uninstall the keypack (id 3 in our example).  Instead of the command in step 2 above, you would enter a command similar to this:

    wmic /namespace:\\root\CIMV2 PATH Win32_TSLicenseKeyPack CALL UninstallLicenseKeyPackWithId 3

    An alternative to the above is to Deactivate the licensing server, uninstall the RD/TS Licensing Role Service/reinstall the Role Service, Activate, and install your license pack(s) again.  This wipes out the license server database and recreates it.  You may need to contact the Clearinghouse if you get an error when re-installing your license pack(s).

    -TP

    Thursday, August 18, 2011 9:31 AM
    Moderator
  • Hi Yuan,

    I was trying to use the Remove "LicenseswithIdCount" method, however I am reciveing the returnvalue = 2147508244 (0x8006014). Am I missing something as I don't see this listed on the RDS provider error codes page?

    Any help is appreciated.

    Thanks,

    Ken


    -Ken

    Wednesday, January 21, 2015 8:56 PM
  • Hi KMFSlasher,

    here another way to reset/clear your licencing server database in case the wmi command does not work:

    net stop termservlicensing

    copy C:\windows\System32\lserver C:\windows\System32\lserver_bak

    del C:\windows\system32\lserver\*

    net start termservlicensing

    It's important not to delete the lserver directory. Just delete the files inside.

    Please be aware that you'll clear the whole licensing server database. All licensing data will be cleared. 

    Kind regards

    Heyko


    • Edited by heyko Thursday, August 18, 2016 2:21 PM
    Thursday, August 18, 2016 2:11 PM