I have this, and it will count all points created since the issue date, but it's less then the maximum channels used.
$PIServerHost = "ho045s"
$piConnection = Connect-PIDataArchive -PIDataArchiveMachineName $PIServerHost -AuthenticationMethod Windows
$pts = Get-PIPoint -WhereClause "creationdate:>1-Jan-2000" -Connection $piConnection
2 of 2 people found this helpful
It's way more simple than both of us thought
Please try this:
$PIServerHost = "ho045s" $piConnection = Connect-PIDataArchive -PIDataArchiveMachineName $PIServerHost $PILicenseMaxAggregatePointModuleCount = Get-PILicenseEntry -Connection $piConnection -Name pibasess.MaxAggregatePointModuleCount write-host "License streams used: " $PILicenseMaxAggregatePointModuleCount.AmountUsed write-host "License streams left: " $PILicenseMaxAggregatePointModuleCount.AmountLeft
Besides the built-in help, the documentation in OSIsoft Live Library is pretty helpful: see Get-PILicenseEntry
Thank you Gregor! I looked into all other Licence cmdlets, but this