K1000 Not detecting registry value
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
Answers (0)
Please log in to answer
Be the first to answer this question
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. - isudothings 8 years ago