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

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

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial – PowerShell

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

Tutorial Powershell – Kill a process

Start a Powershell command-line.

Start Powershell

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 PUTTY, which had the process ID 11864.

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 MSEDGE.

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

Kill multiple processes using the process name.

Copy to Clipboard

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 Powershell.