/build/static/layout/Breadcrumb_cap_w.png

Custom Inventory Field to check reboot required from Windows Update

Hi

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

Answers (2)

Posted by: MAXintosh 8 years ago
Senior Purple Belt
0

tuyen,

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.

Comments:
  • 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. - tuyen 8 years ago
Posted by: davreh99 8 years ago
Orange Belt
0

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.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ