Hi,
I have a simple script to report usage of View. I get the usage by using this command: $global:DefaultHVServers.ExtensionData.ConnectionServerHealth.ConnectionServerHealth_List().ConnectionData.
After collecting this I need to reset the Highest Count. Is it possible to reset the Highest Count using PowerCLI?
Thanks in advance.
GB
any one know this?
Moderator: Thread moved to the PowerCLI area.
OK, i have find the answer, thanks a lot.
What PowerCLI script did you use for resetting the highest count?
Could you shair the solution to the problem?
Ok I have found a solution to the Problem.
Thanks to: PowerCLI/Horizon-Highest-users.ps1 at master · ibeerens/PowerCLI · GitHub
$ExtnData = $Global:DefaultHVServers.ExtensionData.UsageStatistics
$TotCon = $ExtnData.UsageStatistics_GetLicensingCounters().HighestUsage.TotalConcurrentConnections
$TotSes = $ExtnData.UsageStatistics_GetLicensingCounters().HighestUsage.TotalConcurrentSessions
write("Totalconnections: " + $TotCon)
write("TotalSessions: " + $TotSes)
Add-Content -Path $path -Value ("Totalconnections: " + $TotCon)
Add-Content -Path $path -Value ("TotalSessions: " + $TotSes)
$ExtnData.UsageStatistics_ResetHighestUsageCount()
$ExtnData.UsageStatistics_ResetNamedUsersCount()