Forum Discussion

Peter_BW's avatar
Peter_BW
Copper Contributor
Jan 22, 2021

Is my server pending reboot?

I wonder if anyone has any ideas on finding, using powershell, if a server is planning on rebooting anytime soon?

I can find out if a reboot is due for windows updates and a few other possible reasons, using powershell but if a reboot is waiting from running shutdown -r -t nnnnn then none of the places I know to look are helpful. Even Windows Admin Centre does not seem to know the server has a reboot pending. I have looked in Event viewer for a system log event ID13 but that may or may not tell me anything about an upcoming reboot.

A shutdown -a knows if a reboot is pending or not (it errors if not) but I can't find out where to look to find this information myself.

Any Ideas please?

Resources