I have a suggestion! :) So this relies on the SCCM 07 / 12 agent being installed on a machine, and will fail if it's not.
An alternative would be to check for any pending file rename operations. Check for the existence of the following regkey:
HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
If it exists, a reboot is needed.
Hope this helps. Dan
An alternative would be to check for any pending file rename operations. Check for the existence of the following regkey:
HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
If it exists, a reboot is needed.
Hope this helps. Dan