I have found that in the registry the following will have a value if a reboot is pending due to a Windows update:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update - RebootRequired

I created the following Custom Inventory Rule to get the value of it of it, however it does not seem to be running.  I even manually added that value and it still is not taking.

This is the rule I have configured:
RegistryValueReturn(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update,RebootRequired,TEXT)

What is wrong with the above?  And how can I fix this?

Thank you.

0 Comments   [ + ] Show Comments


Please log in to comment




The key you're checking apparently only exists IF the computer is pending reboot. If the computer is not there is no key. I am assuming it may be failing because it doesn't see the key. My suggestion would be to use: RegistryKeyExists(string absPath) instead of RegistryValueReturn(string absPath). If the value returned it True then they're waiting to reboot. If the value returned is False, then they're not waiting to reboot.
Answered 05/03/2016 by: MAXintosh
Senior Purple Belt

  • Hi, thanks for the response. I have tried RegistryKeyExists and that did not work as well. I even tried adding the RebootRequired key into the registry and it still did not show the value. For all the clients, this is not showing as running on any of them.
Please log in to comment

You may be running into the Kace 32bit vs 64bit registry issue. 

Try the same with HKLM64\SOFTWARE\Microsoft\Windows\rest of path...

instead of:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update,RebootRequired,TEXT

*Someone else chime in as I do not remember why this worked for me, in the past when looking for a reg key from kace to HKEY_LOCAL_MACHINE.... or if this applies to your goal.

Answered 05/04/2016 by: davreh99
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity