Detect pending OS updates and reboot info

Got a problem you cannot solve? Try here.
Post Reply
Coder For Food
Posts: 21
Joined: Sat Jun 25, 2011 5:21 pm

Detect pending OS updates and reboot info

Post 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?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Detect pending OS updates and reboot info

Post 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.aspx

In 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/1498 ... rough-wsus

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply