paulwetter / DocumentConfigMgrCB

This script attempts to document your entire Configuration Manager (MEMCM/SCCM) environment
https://wetterssource.com/documentconfigmgrcb
174 stars 45 forks source link

Collection Evaluation Time #85

Open paulwetter opened 3 years ago

paulwetter commented 3 years ago

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 commented 2 years ago

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