![]() ![]() If($InstalledUpdates.Count -eq $unt) Posted in System Center Configuration Manager, System Center Orchestrator | Leave a reply System Center 2012 R2: Update Rollup 1 #Make sure installed updates equals available updates. ![]() $InstalledUpdates = -query "SELECT * FROM CCM_SoftwareUpdate WHERE EvaluationState = 8 or EvaluationState = 9 or EvaluationState = 12" -namespace "ROOT\ccm\ClientSDK" -computer $Computer) | measure #Wait for SCCM client to complete installation $WaitWhileInstalling = -query "SELECT * FROM CCM_SoftwareUpdate WHERE EvaluationState = 6 or EvaluationState = 7" -namespace "ROOT\ccm\ClientSDK" -computer $Computer) $updates = -query "SELECT * FROM CCM_SoftwareUpdate" -namespace "ROOT\ccm\ClientSDK" -computer $Computer) | measure #CCM_SoftwareUpdate #Created by Haavard Molland And for example replace the Deployment Status activity.” in orchestrator. This kind of logic is useful, if you want to do advanced automation of server patching with Configuration Manager and Orchestrator. ![]() I recently created a simple PowerShell script to track the software update installation process initiated by SCCM. WMI queries below will check if all available updates is installed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |