taskkill

Windows CMD · Processes · available in the simulator

What it does

Terminates a process by PID or name.

Syntax

taskkill [/pid id | /im nombre] [/t] [/f]

Options and parameters

  • /PID N

    by process ID

  • /IM NOMBRE

    by image name (e.g., notepad.exe)

  • /F

    Forces the termination of the process.

    taskkill /IM chrome.exe /F
  • /T

    Terminates child processes as well.

  • /PID

    Specifies the process by its process ID.

    taskkill /PID 1234
  • /IM

    Specifies the process by its image name.

    taskkill /IM notepad.exe
  • /FI

    Applies a filter to select processes.

  • /S

    Specifies the remote system.

  • /U

    User context under which to execute the remote command.

  • /P

    Password for the user specified in /U.

Usage examples

  • taskkill /PID 1234 /F
  • taskkill /IM notepad.exe
  • taskkill /IM chrome.exe /T /F
  • taskkill /IM notepad.exe /F
  • taskkill /PID 1234
  • taskkill /IM chrome.exe /F
Practise taskkill

Related commands