Posts

Showing posts from August, 2026

Script to install all updates in software center

<# .SYNOPSIS Installs every missing software update currently visible in Software Center. .DESCRIPTION Intended for use with Configuration Manager's Run Scripts feature. The script queries the local ConfigMgr Client SDK for deployed, applicable, missing updates that are visible in Software Center, then submits all of them to CCM_SoftwareUpdatesManager in one installation request. Installation continues asynchronously after this script finishes. Reboot and maintenance-window behavior remain controlled by the ConfigMgr deployment and client settings; this script does not force a reboot. .NOTES Run context: Local System (the normal SCCM Run Scripts context) PowerShell: Windows PowerShell 5.1 #> $ErrorActionPreference = 'Stop' $Namespace = 'root\ccm\ClientSDK' $UpdateClass = 'CCM_SoftwareUpdate' $MaximumRows = 25 $EvaluationStateNames = @{ 0 = 'None' 1 = 'Av...