Would you like to learn how to kill a process using the command-line on a computer running Windows? In this tutorial, we are going to show you how to kill a task using the command-line on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10

Windows Playlist:

On this page, we offer quick access to a list of videos related to Windows installation.

Don't forget to subscribe to our youtube channel named FKIT.

Windows Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Windows.

Tutorial Windows - Kill a process using the command-line

Start a new command-line prompt.

Windows DOS Prompt

List the processes running on the computer.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Kill a process using the process ID.

Copy to Clipboard

In our example, we killed the process named MSPAINT, which had the process ID 3724.

Change the process ID number to the process that you want to kill.

Kill a process using the process name.

Copy to Clipboard

In our example, we killed all processes named MSPAINT.EXE.

Change the process name to the process that you want to kill.

You may also use wildcards on the process name.

Copy to Clipboard

In our example, we killed all processes in which the name started with MSPAIN.

Congratulations! You are able to terminate processes using the command-line.