Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win10 定時關機指令大全:at 排程與 shutdown 倒數計時兩種模式

編輯:Windows 10 系統介紹

Win10 提供命令列方式設定定時關機,分為「指定時刻關機」與「倒數秒數關機」兩種模式,滿足不同情境需求。所有指令均可用 shutdown -a 取消,且為一次性排程,重開機後失效。

方法一:指定時刻關機 (使用 at 指令)

at 22:00 shutdown -s

其中 22:00 為預計關機時間 (24 小時制)。

方法二:倒數計時關機 (使用 shutdown 參數)

  • 1 分鐘後關機:shutdown -s (預設 60 秒)
  • 自訂秒數:shutdown -s -t 60 (60 秒後關機,可改為任意秒數)
  • 帶提示訊息:shutdown -s -t 60 -c "未來 60 秒的自己,這個彈窗出自一分鐘之前的你"


取消已排程關機

shutdown -a


注意:at 指令在部分電腦可能因服務未啟動而失效;shutdown 彈窗提示若系統關閉「互動式服務偵測」可能改為氣泡通知並快速消失,屬正常現象。
Copyright © Windows教程網 All Rights Reserved