您的当前位置:首页正文

License许可满查询删除操作

2022-04-08 来源:星星旅游


一、查看已经分发用户或者设备许可。

1.在LS路径下进行查询。

2.使用udadmin.exe –list命令查询已经分发用户或者设备许可,并且导出文件。

3.找到导出文件,打开导出文件。

二、删除已经分发用户或者设备License许可操作:

Udadmin

1. On the license server from a command prompt navigate to: C:\\Program Files (x86)\\Citrix\\Licensing\\LS

2. To see a list of currently assigned licenses run the command udadmin -list

3. To release user license

XenDesktop Enterprise license: udadmin -f XDT_ENT_UD -user username -delete

XenDesktop Platinum license: udadmin -f XDT_PLT_UD -user username -delete

4. To release device license

XenDesktop Enterprise license: udadmin -f XDT_ENT_UD -device devicename -delete

XenDesktop Platinum license: udadmin -f XDT_PLT_UD -device devicename –delete

or

Delete the files located in the C:\\Program Files

\\Citrix\\Licensing\\LS\\resource\\Cache folder

Stop and start the Citrix licneisng service.

使用脚本删除:

Batch Script

1. On the license server from a command prompt navigate to: C:\\Program Files (x86)\\Citrix\\Licensing\\LS

2. Run the below command to release all device licenses :

for /f \"tokens=1,2\" %i in ('udadmin -list ^| find /i \"_ud\"') do @udadmin -f %j -device %i –delete

3. Run the below command to release all user licenses :

for /f \"tokens=1,2\" %i in ('udadmin -list ^| find /i \"_ud\"') do @udadmin -f %j -user %i –delete

To release both User/device licenses, run both commands one after the other and it would release all the licenses.

因篇幅问题不能全部显示,请点此查看更多更全内容