Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

WMI and SCCM - Check How Many Pending Updates for Remote Machines

$
0
0

Hi All,

My company uses System Centre 2012 Configuration Manager (SCCM 2012) to deploy Windows operating system updates to servers and workstations.

I've written a PowerShell script to reach out to remote servers and check if they are awaiting an restart due to updates, which can be summarized as the following:

$rebootRequiredBoolean = Invoke-WmiMethod -ComputerName $individualServer -Namespace "ROOT\ccm\ClientSDK" -Class "CCM_ClientUtilities" -Name DetermineIfRebootPending | Select-Object -Property PSComputerName,RebootPending

This works well.

However, it would be great to find out how many individual updates are pending to be installed on each remote machine too.

If anyone has got a way to accomplish this, it would be much appreciated.

Thank you all.


Viewing all articles
Browse latest Browse all 6937

Trending Articles