Evaluate ConfigMgr Client Policy with PowerShell

This is how I use PowerShell to force the Configuration Manager client to force evaluate policy.

The following PowerShell code will force machine policy evaluation.

$trigger = "{00000000-0000-0000-0000-000000000021}"
Invoke-CimMethod -Namespace 'root\ccm' -ClassName 'sms_client' -MethodName TriggerSchedule -Arguments @{sScheduleID=$trigger}
Start-Sleep -Seconds 10
$trigger = "{00000000-0000-0000-0000-000000000022}"
Invoke-CimMethod -Namespace 'root\ccm' -ClassName 'sms_client' -MethodName TriggerSchedule -Arguments @{sScheduleID=$trigger}

The list below is a reference of ScheduleIDs and their respective policy

Read More