Getting the Citrix License statistics

      No Comments on Getting the Citrix License statistics

clear
[string]$result = (Get-Content ‘c:\temp\CTX license dingen\test.txt’)[4 .. 4]
[string]$result_date = Get-Date
$result_inuse = $result.substring(11,6)
$result_users = $result.substring(31,6)
$result_devices = $result.substring(47,6)
$result_string = $result_date+”;”+$result_inuse+”;”+$result_users+”;”+$result_devices
Add-Content -path ‘c:\temp\CTX license dingen\result.txt’ -Value $result_string

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.