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.
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
efforts, please visit