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

沖擊波/震盪波強制關機怎麼辦?Windows XP/2000 使用 shutdown.exe -a 緊急中止重啟

編輯:XP 系統基礎知識

原理

Blaster/Sasser 等蠕蟲呼叫 shutdown.exe (位於 %WinDir%\System32\) 強制重開機。在倒數視窗彈出時,執行 shutdown.exe -a 即可中止。

緊急中止步驟

  1. 彈出強制關機對話框時,快速按 Win+R (或 Ctrl+R) 開啟「執行」。
  2. 輸入 shutdown.exe -a (注意 -a 前有空格) → Enter。
  3. 倒數視窗消失,系統保持運行,隨即可清除病毒/存檔重要資料。

shutdown.exe 常用參數表

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

應用範例

  • 定時關機:Win+R → at 23:00 shutdown -s (23:00 關機,預設 30 秒倒數)。
  • 倒數關機:shutdown.exe -s -t 3600 (60 分鐘後關機)。
  • 取消排程:shutdown -a。
  • 圖形化設定:shutdown -i。

在 Windows 2000 使用 shutdown.exe

  1. 從 XP %WinDir%\System32\shutdown.exe 複製至 Win2k 同目錄。
  2. 「執行」輸入 shutdown.exe 即可像 XP 一樣使用所有參數。

Win2k 原生調用 Shell32.dll (如 rundll32.exe Shell32.dll,SHExitWindowsEx 8),但移植 shutdown.exe 更方便統一管理。

Copyright © Windows教程網 All Rights Reserved