How does the "restart computer only if it is pending reboot" feature work in a Power Control Task?
ITMS 8.x
This shows how to use a Power Control task to restart a computer if it has a pending reboot:
This task checks the following registry key: HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations. If it has a value, the power control task will reboot the computer if the flag performs reboot only if pending is marked.