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

Windows Server 2008 關機命令 shutdown -t 參數限制破解 (任務排程器實現長延遲關機)

編輯:Server 2008

問題

Server 2008 中 shutdown -s -t 3600 (延遲 1 小時關機) 失效,shutdown /? 顯示 -t 參數範圍被限制為 0-600 秒 (10 分鐘)。

替代方案:任務排程器

  1. Win+R → taskschd.msc 開啟任務排程器。
  2. 右側「建立工作」→ 「一般」標籤命名「延遲關機」。
  3. 「觸發條件」→ 新增 → 「一次」 → 進階設定勾選「工作最多延遲時間 (隨機延遲)」→ 設為「1 小時」 (或更長)。
  4. 「動作」→ 新增 → 程式/腳本填 shutdown,引數 -s → 確定。
  5. 確認無誤 → 確定建立。到期自動執行關機。

此法繞過 shutdown 內建參數限制,靈活實現任意長度延遲關機。

Copyright © Windows教程網 All Rights Reserved