Get Registry Value for Reboot Required -- cannot seem to get registry value as SYSTEM ?
05/11/2016 1784 views
I had earlier posted a question regarding using Custom Inventory Rules to look for the following registry key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
I have tried to get this through CIR, and also by scripting using the reg query command, however I am not able to get it. It seems like the KACE agent runs the script and tries to get the registry value in CIR as SYSTEM, and SYSTEM is not able to read this key. I do not want to have to run this script as logged-on user because this would not cover computers that are logged in through Remote Desktop. Is there some way we can get SYSTEM to query the registry key above? I have tried using some VBS and Powershell script for the script process to call upon to query the registry key, but I have not been able to get it to work. As SYSTEM, when it tries to query that key, it thinks that the key does not exist.
Has anyone had an issue like this and how can we get around this?