![]() #$usageReport | Format-Table -AutoSize | out-file “C:\reports\usagereport.txt” $usageReport = | select-object pld -unique | foreach ,License,Count,Usage,PctUsed,Alert|ft -AutoSize|Out-File -Append C:\report_do_not_delete\$(get-date -uformat “%Y-%m-%d”).txt $LicenseData = Get-WmiObject -class “Citrix_GT_License_Pool” -namespace “ROOT\CitrixLicensing” -ComputerName $CitrixLicenseServer #retrieve license information from the license server #Toggle an alert above this percentage of licenses used ![]() #Do you want to report on licenses with 0 users? $CitrixLicenseServer = “ yourlicenseservername” Run the script as a scheduled task at a specific time to receive the license usage reports in your mailbox or run it manually from a PowerShell window in Admin mode #Region Settings Also, make the relevant changes in the script marked in Red. ps1Īlso ensure that you have a folder called report_do_not_delete created in the C: drive on the license server. The script could be saved as a file with an extension of. The below PowerShell script could be used to deliver automated emails on the Citrix License usage for Citrix Admins.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |