salt.grains.pending_reboot

Grain that indicates the system is pending a reboot See functions in salt.utils.win_system to see what conditions would indicate a reboot is pending

salt.grains.pending_reboot.pending_reboot()

A grain that indicates that a Windows system is pending a reboot.