Home > Commands N-Z > Commands T

TASKKILL


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Ends one or more tasks or processes. Processes can be killed by process ID or image name.


Syntax

TASKKILL /?

TASKKILL [/S computer [/U [domain\]user [/P password]]] [/FI filter_name] [/IM image_name /PID process_id] [/F] [/T]


Parameters

none.


Switches
/? (NTXP)
Displays help.
/F (NTXP)
Specifies that process(es) be forcefully terminated. Ignored for remote processes; all remote processes are forcefully terminated.
/FI filter_name (NTXP)
Specifies the types of process(es) to include in or exclude from termination. These are valid filter names, operators, and values:
      Name        Operators               Value
      CPUTime     eq, ne, gt, lt, ge, le  Valid time in the format of hh:mm:ss. The mm and ss parameters should be between 0 and 59 and hh can be any valid unsigned numeric value.
      Hostname    eq, ne                  Any valid string.
      Imagename   eq, ne                  Any valid string.
      Memusage    eg, ne, gt, lt, ge, le  Any valid integer.
      PID         eg, ne, gt, lt, ge, le  Any valid positive integer.

      Services    eq, ne                  Any valid string.
      Session     eg, ne, gt, lt, ge, le  Any valid session number.
      Status      eq, ne                  RUNNING|NOT RESPONDING
      Username    eq, ne                  Any valid user name ([Domain\]User).
      Windowtitle eq, ne                  Any valid string.
      Name        Operators               Value
/IM image_name (NTXP)
Specifies the image name of the process to be terminated. Use the wildcard (*) to specify all image names.
/P password (NTXP)
Specifies the password of the user account that is specified in /u.
/PID process_id (NTXP)
Specifies the process ID of the process to be terminated.
/S computer (NTXP)
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/T (NTXP)
Specifies to terminate all child processes along with the parent process, commonly known as a tree kill.
/U [domain\]user (NTXP)
Runs the command with the account permissions of the user specified by User or Domain\User. The default is the permissions of the current logged on user on the computer issuing the command.

Related

none.


Notes
Examples

none.


Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NTXP NT2003