Detect pending OS updates and reboot info
Posted: Wed Sep 04, 2013 9:36 pm
by Coder For Food
From within my InstallAware 15 install script, I need to be able to detect pending “Important” and “Critical” updates as seen by the Windows 8 system. These are the same 2 items listed when Windows Update is run from the Action menu. I also need to know if a pending reboot is about to happen and if the next power cycle or reset of the machine will be updating the OS. While I am certain some or all of these values are in the Registry, I cannot information to answer my questions.
Any ideas?
Re: Detect pending OS updates and reboot info
Posted: Thu Sep 05, 2013 9:28 am
by FrancescoT
Dear User,
Honestly, I never faced a similar situation.
For what I know pending Windows update reboot should be stored under;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
Anyway, I know that it is possible to use the "Windows Update Agent API SDK" for that;
http://msdn.microsoft.com/en-us/library/aa387099.aspxIn addition, I may suggest you to have a look at the following link, where a similar matter has been discussed (seems to be available a VB script code snippet as well).
http://stackoverflow.com/questions/14989145/checking-windows-updates-directly-through-wsusHope this helps you.
Regards