Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 系統指令

Windows shutdown 指令詳解:定時關機、延遲關機、重啟、註銷一鍵掌握

編輯:系統指令

shutdown 是 Windows 內建關機指令,善用可完成定時/延遲關機、重啟、註銷等任務,無需第三方軟體。Win7 需管理員權限執行。

常用參數速查表

參數功能
/a取消關機
/s關機
/f強制關閉應用程式
/i顯示圖形化介面(必須為第一參數)
/l註銷目前用戶
/r關機並重啟
/t 秒數設定關機倒數計時

實戰範例

定時關機(例:晚上 23:25)

at 23:25 shutdown /s
# at 23:25 排程執行,shutdown /s 正常關機

延遲關機(例:1 小時後 = 3600 秒)

shutdown /s /t 3600
# /t 為延遲參數,3600 秒後關機

善用 at 排程與 shutdown /t 延遲,靈活掌控電腦開關機時程。

Copyright © Windows教程網 All Rights Reserved