Yes, I know this has been asked before. However, none of the proposed solutions have worked yet. I need to determine if machines are in a pending reboot state after updates have been applied. The goal is to script a reboot if this key is present. Here's the key I'm looking for:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired

The script output says it does not find the key and exits. My suspicion was immediately the infamous 64 vs 32 bit reg.exe debacle that has long plagued the K1000, so I looked inĀ 

HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired

but it does not exist. Using HKLM64 to verify also did not work. Am I just SOL until a 64-bit version of KACE arrives?
1 Comment   [ + ] Show Comment


  • Are you using a custom inventory rule to look for the key or just a script? Also, since the RebootRequired key is volatile have you verified that it is actually present in the registry on your test machine?
    • I did verify it was present locally, yes. I seemed to have some success using custom inventory rule :

      ShellCommandTextReturn(REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" /reg:64)

      But I don't want to reboot workstations based on "some success". Also, the lookup needs to be at runtime of the script.
Please log in to comment

There are no answers at this time


Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja