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

Windows 2000/XP 巧用 shutdown.exe 阻擋強制關機與遠端管理

編輯:Windows 2003 常見問題解答

沖擊波、震盪波病毒導致系統倒數關機,讓使用者措手不及。關鍵在於 Windows XP 透過 shutdown.exe 執行關機,只要在倒數視窗出現時於「執行」輸入 shutdown.exe -a 即可中止。本文詳細說明參數用法,並示範如何將此工具移植至 Windows 2000 使用。

核心原理

Windows XP 關機流程呼叫 %SystemRoot%\System32\shutdown.exe。病毒觸發的強制重啟同樣依賴此程式,因此執行 shutdown.exe -a(abort)即可取消排程關機。

常用參數速查

參數功能
-a取消已排程的關機
-f強制關閉應用程式
-m \\電腦名遠端控制指定電腦
-i顯示圖形介面 (必須為第一個參數)
-l登出目前使用者
-r關機並重新開機
-t 秒數設定倒數秒數
-c "訊息"自訂關機對話方塊訊息 (最多 127 字元)

實用範例

  • 定時關機:at 23:00 shutdown -s(23:00 自動關機,預設 30 秒倒數)。
  • 倒數關機:shutdown.exe -s -t 3600(60 分鐘後關機)。
  • 取消排程:shutdown -a。
  • 圖形化設定:shutdown -i 開啟遠端關機對話方塊。

移植至 Windows 2000

Win2000 原生使用 Shell32.dll 關機,但可直接將 XP 的 shutdown.exe 複製到 Win2000 的 %SystemRoot%\System32 目錄,即可在「執行」中使用所有參數功能。

掌握 shutdown.exe,不僅能緊急中止惡意關機,更能靈活排程與遠端管理電腦電源狀態。

Copyright © Windows教程網 All Rights Reserved