shutdown -s -t 秒數shutdown -s -t 3600 (3600 秒 = 1 小時後關機)。定時關機.bat(副檔名務必為 .bat),存檔類型選「所有檔案」。取消關機: 執行 shutdown -a(可另存為 取消關機.bat)。
cmd → Enter。shutdown -s -t 秒數 → Enter。取消關機: 同樣在 CMD 輸入 shutdown -a → Enter。
| 參數 | 功能 | 範例 |
|---|---|---|
| -s | 關機 | shutdown -s -t 3600 |
| -r | 重新開機 | shutdown -r -t 600 |
| -a | 取消排程 | shutdown -a |
| -t xxx | 倒數秒數(0~315360000) | -t 1800 (30分) |
| -f | 強制關閉應用程式 | shutdown -s -f -t 60 |
| -c "訊息" | 顯示自訂提示訊息 | shutdown -s -t 300 -c "5分鐘後關機,請存檔" |
shutdown.exe → 引數:-s -f -t 60。-f 會強制關閉未回應程式,可能導致資料遺失。rundll32.exe powrprof.dll,SetSuspendState 0,1,0),保護電池與資料。shutdown /m \\目標電腦名 -s -t 60。