How do I check for available "Automatic Updates" via script / cli

Posted by Lee on Server Fault See other posts from Server Fault or by Lee
Published on 2010-05-10T17:13:42Z Indexed on 2010/05/10 17:25 UTC
Read the original article Hit count: 288

I asked this on superuser, but I think this may have been a more apropriate place. We are trying to automate server reboots, but one of the "gotchas" we are running into are that they want us to install updates by manually clicking "sure, install updates" during monthly Windows reboots. If I had a way to check to see if updates are in fact waiting, we'd be ok with rebooting automatically via a script and just failing if this is the case. My problem is I can't figure out how to check to see if there are in fact updates waiting to be installed, without logging in. Is there a file or particular service status I can check for? Maybe with Powershell or something similar? The current setting used is "Download updates but do not install automatically"

© Server Fault or respective owner

Related posts about windows-server-2003

Related posts about windows-server-2008