How do I kill an unresponsive process or task in Windows when it becomes completely unresponsive (window becomes a ligt grey, cursor a rotating blue ring)?

  • Clicking [X] or trying to end process in taskmgr has no effect [status is unresponsive].
  • Task can't be killed using Process Explorer [procexp] or with any of the following:
    TaskKill /f /pid %pid%
    TaskKill /f /im %exec.exe%
    Stop-Process -Force -Name $name
  • Well, in such situations, I always know how to end them: shutdown /r /t 0 and they are killed for good... Dec 27 '20 at 8:41
  • No replies? Then it seems the only right answer really is restarting... Dec 27 '20 at 9:20
  • For explanation see Can't kill a sleeping process (Linux but applies here too).
    – harrymc
    Dec 27 '20 at 9:49
  • But I am on Windows... Dec 27 '20 at 10:11
  • @harrymc That only explains it, I can confirm it's the same case, but it doesn't provide any real solution... Dec 27 '20 at 10:15

To end unkillable processes, use WMIC [Windows Management Instrumentation Console] in cmd or powershell, replace the variables with the PID/name of the process to kill:

  • cmd (variable: %pid%):
    WMIC Process where ProcessID=%pid% delete
  • powershell (variable: ${name}):
    WMIC Process where Name="${name}.exe" delete

You can give a try to use this code in a batch file :

@echo off 
Mode 90,3 & color 0B
Title Killing All Applications with Status equal to NOT RESPONDING
  • Did you read my question? I said the process can't be taskkilled, it does not accept terminating signals... Dec 28 '20 at 8:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.