如何取得 Windows 中的預定關機時間?

如何取得 Windows 中的預定關機時間?

假設我在 Windows 中安排關閉/重新啟動,例如

shutdown /r /f /t 300

有沒有辦法查詢還剩多少時間或何時重新啟動?

我可以中止關機,

shutdown /a

因此,我推測 Windows 會獨立於我用來安排關閉的 shell 來追蹤此情況。

我怎樣才能得到這些資訊?基本上,我想知道還剩多少時間(或者當前是否計劃主動關閉)?

答案1

https://superuser.com/questions/317051/in-windows-7-how-do-i-know-when-a-computer-is-scheduled-to-be-shutdown

https://superuser.com/questions/1028374/define-whether-a-shutdown-is-pending

查看上面的連結以供參考。

我做了一些谷歌FU,似乎沒有直接的方法來獲取你想要的資訊。您必須使用 power-shell 進行一些查詢或查看事件日誌。

相關內容