Windows 內建除錯器 ntsd 可強制終止幾乎所有進程(除 System、SMSS.EXE、CSRSS.EXE 等極少數關鍵系統進程),是對抗頑固病毒進程的利器。前提是獲取目標進程 PID (Process ID)。
tasklist 或 tasklist /fi "imagename eq virus.exe"。ntsd -c q -p
範例:發現病毒進程 PID=444,執行 ntsd -c q -p 444 即可強制終止。
ntsd -c q -p 終止進程。C:\Windows\System32 尋找並刪除病毒本體程式檔。HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunHKCU\Software\Microsoft\Windows\CurrentVersion\Runntsd 屬強制終止,可能導致資料未寫入磁碟遺失,僅用於無法正常結束的惡意進程。taskkill /f /pid 亦可達到同樣效果(更常用)。