位於 C:\Windows\System32\shutdown.exe,無需安裝第三方軟體。
| 參數 | 功能 |
|---|---|
-s | 關機 |
-r | 重新開機 |
-l | 登出目前使用者 |
-h | 休眠 |
-t xxx | 設定倒數秒數(預設 30 秒,最大 315360000 秒 = 10 年) |
-c "訊息" | 關機對話框顯示自訂訊息(最長 127 字元) |
-f | 強制關閉應用程式(不提示儲存) |
-a | 取消已排程的關機/重開機 |
-m \\電腦名 | 遠端控制其他電腦(需管理員權限) |
-i | 顯示圖形化設定介面(需為第一個參數) |
shutdown -s -t 3600at 17:01 shutdown -sshutdown -s -f -t 60 -c "系統將在 60 秒後關機,請儲存檔案"shutdown -ashutdown -ishutdown -s -t 3600 -c "1小時後自動關機"。shutdown → 引數:-s -f -t 60 -c "排程關機,60秒後關閉"。-f 會強制關閉導致資料遺失,建議平時習慣 Ctrl+S。