HomeHow ToKill all stuck tasks in Windows 10

Kill all stuck tasks in Windows 10

In Windows 10, you can kill all tasks that are no longer responding simultaneously. There is a special Command Prompt command for this job. In this article, we will see how you can do it and we will also create a related shortcut for easy access to the command.

task

In Windows 10 and earlier versions, there is a taskkill, which allows you to terminate a process or a group of processes. For example, you can kill the explorer.exe process with the following command:

taskkill.exe /im explorer.exe /f

The /im switch specifies the name of the process to be killed. It also supports the '*' wildcard so you can specify part of the process name.
The /f switch will forcefully kill the process(es).

The above example gives you an idea of how the taskkill.exe command can be used. Now, let’s see how to kill all processes that are not responding to their tasks.

To kill all non-responding processes in Windows 10, simply use the following syntax for taskkill.exe:

taskkill.exe /F /FI "status eq NOT RESPONDING"

Kill all stuck tasks in Windows 10

With the new switch, /FI, you apply a special filter that allows you to select a range of tasks. It also supports the wildcard “*”, for example: imagename eq acme*.
The above filter tells the taskill command to find all NOT RESPONDING processes. The /F switch specifies that all tasks found should be terminated.

The supported filters are as follows:

Filter NameParameterValid Value(s)
STATUSeq, neRUNNING | NOT RESPONDING | UNKNOWN
IMAGENAMEeq, neImage name
PIDeq, ne, gt, lt, ge, lePID value
SESSIONeq, ne, gt, lt, ge, leSession number
CPUTIMEeq, ne, gt, lt, ge, leCPU time in the format of hh:mm:ss.
hh – hours, mm – minutes,
ss – seconds
MEMUSAGEeq, ne, gt, lt, ge, leMemory usage in KB
USERNAMEeq, neUser name in [domain\\]user format
MODULESeq, neDLL name
SERVICESeq, neService name
WINDOWTITLEeq, neWindow title

To make your time more efficient, you can create a shortcut to quickly terminate tasks.

Right-click on an empty space on your desktop and select New – Shortcut.
In the shortcut item, specify the following command:

taskkill.exe /F /FI "status eq NOT RESPONDING"

Kill all stuck tasks in Windows 10

Press the “Next” button and then name your shortcut as you wish, for example “Kill the stuck tasks”, set an icon of your choice and it’s ready. You can pin the shortcut or you can also assign a keyboard shortcut.

Kill all stuck tasks in Windows 10

📧
Subscribe to the SecNews Newsletter

The most important Security & Technology news in your Inbox.

SecNews
SecNewshttps://www.secnews.gr
In a world without fences and walls, who needs Gates and Windows

SEARCH

FOLLOW US

📧
Newsletter SecNews
The most important Security & Technology news in your inbox.

LIVE NEWS