DocumentConfigMgrCB
DocumentConfigMgrCB copied to clipboard
Collection Evaluation Time
These numbers are now exposed in WMI and the Console.
Code to get the incrementals:
$Incrementals = Get-WmiObject -Class SMS_CollectionEvaluationIncremental -Namespace ROOT\SMS\site_$SiteCode
$totalTime = 0
foreach ($Collection in $Incrementals) {
If ($Collection.Length -lt 4294000000){ #if a incremental is currently running
$totalTime += $Collection.Length
}
}
Write-Host "Incremental total time: $totalTime"
CM 2010 or newer. https://docs.microsoft.com/en-us/mem/configmgr/develop/reference/core/clients/collections/sms_collectionevaluationincremental-server-wmi-class