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

Windows 7 定時關機指令大全:shutdown 參數詳解與實用範例(每晚 23:00 關機、1 小時後關機)

編輯:Win7 系統基礎知識

Win 7/XP/Vista 通用 shutdown 指令參數完整說明:定時關機、重啟、休眠、強制關閉、遠端關機一指令搞定

shutdown 參數速查

  • /s 關機、/r 重啟、/h 休眠、/p 無提示關機
  • /t xxx 設定倒數秒數 (0-600,預設 30)
  • /f 強制關閉程式不警告
  • /a 取消排程關機
  • /m \\computer 遠端目標電腦
  • /c "comment" 關機原因註解 (最多 127 字元)
  • /d [p:]xx:yy 提供關機原因代碼

實用範例

  • 每晚 23:00 定時關機:at 23:00 shutdown -s
  • 1 小時 (3600 秒) 後關機(下載未完成離開時):shutdown -f -s -t 3600
  • 取消排程關機:shutdown -a
開始 → 執行 → cmd → 輸入指令即可。掌握 shutdown 參數,定時關機、遠端管理輕鬆實現。
Copyright © Windows教程網 All Rights Reserved