DocumentConfigMgrCB icon indicating copy to clipboard operation
DocumentConfigMgrCB copied to clipboard

Collection Evaluation Time

Open paulwetter opened this issue 3 years ago • 1 comments

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"

paulwetter avatar Mar 15 '21 16:03 paulwetter

CM 2010 or newer. https://docs.microsoft.com/en-us/mem/configmgr/develop/reference/core/clients/collections/sms_collectionevaluationincremental-server-wmi-class

paulwetter avatar Mar 02 '22 04:03 paulwetter