Is there a way to find out if a Windows Server (2003, 2008) has downloaded the Microsoft Windows updates and is just waiting for the user to confirm "Install Updates and Restart the server"?
We use WSUS and SSCM to collect and publish the updates, and the majority of the servers are on automatic install on a Sunday morning, mostly development and test server.
We have setup our important production servers to only install manually, but occastionally some servers are not rebooted manually for a while (humans forget!)
It would be nice if there was some method (powershell script, WMI query, some magic command) that I could use to count or discover if there where updates pending.
Best Answer
Here is the script I wrote. It will tell you:
Example usage:
C:\> cscript ServerPendingUpdates.vbs myserver01 myserver02
Script: