Post date: Mar 27, 2013 12:32:8 PM
Original source
http://www.riverlite.co.uk/2012/01/troubleshooting-and-resetting-xendesktop-licensing/
Earlier this week we had a call from a customer stating that they were getting a message stating that they were out of licenses when attempting to log on to a XenDesktop session. The customer had purchased a set number of device/user licenses and they had reached their limit, un-intentionally (doing testing with many different users!).
Now there are 2 ways to resolve this, the “official” and “unofficial” methods. I will outline both here, but as you can imagine; Citrix only recognise the “official” method.
Unofficial Method
I did some digging around the file structure and found some log files:
C:\Program Files (x86)\Citrix\Licensing\LS\Logs\
Within here was a log named “log_vdxudlic”, from the filename I gathered that this may contain user/device licensing data. Opening the file showed a very large amount of data, the only particularly useful bit was:
This appeared to indicate some sort of “caching” location.
So I checked this folder to see what was present and this is what we see:
The files are binary, so any attempt to read them using notepad etc will fail.
Removing them and restarting the Citrix licensing service will reset the license usage count.
Official Method
Citrix provide a tool named “udadmin” that ships with the latest releases of Citrix licensing, it is purely command line driven, but easy to use.
As you can see from the above screenshot we can easily list the consumed licenses, and then redirect the output to a text file:
Opening the text file we see (note this has been edited to mask user names):
We can then remove the user’s XenDesktop license:
In the above command we remove the XenDesktop Enterprise license that is assigned to the user “Citrix”.
Note that the first time we queried the license allocation it stated that the data would be refreshed in 15 minutes, as such we will have to wait until that timer has elapsed before we will get up to date license information. Once this has elapsed we will see that the user no longer has a XenDesktop Enterprise license allocated.