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

Windows Server 2003 關機/重啟指令 shutdown 完整參數與定時任務教學

編輯:關於 Windows

使用 shutdown 指令管理伺服器電源:

  • shutdown /r /t 0 立即重啟(/r 重啟,/t 0 0 秒延遲)。
  • shutdown /f /r /t 0 強制關閉應用程式並重啟。
  • 常用參數:/s 關機、/r 重啟、/f 強制、/t xxx 秒數(0-600)、/a 取消倒數、/m \\computer 遠端操作。

搭配 at 指令排程:at 23:30 shutdown /f /s /t 0 定時關機,at 1 /delete 取消排程。適用 XP/2003,2000 需複製 shutdown.exe。at 排程以 SYSTEM 權限執行,無需登入即生效,支援遠端部署。

補充:關機倒數時執行 shutdown.exe -a 可中止;可建立桌面捷徑方便操作。

Copyright © Windows教程網 All Rights Reserved