Home > Commands N-Z > Commands T

TASKLIST


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

Displays a list of applications and services with their Process ID (PID) for all tasks running on either a local or a remote computer.


Syntax

TASKLIST /?

TASKLIST [/S computer [/U [domain\]user [/P password]]] [/FI filter_name [/FI filter_name [...]] [/FO format] [/NH] [/M [module_name] | /SVC | /V]


Parameters

none.


Switches
/? (NTXP)
Displays help.
/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.
      Imagename   eq, ne                  Any valid string.
      Memusage    eg, ne, gt, lt, ge, le  Any valid integer.
      Modules     eq, ne                  Any valid string. NTXP ONLY
      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.
      SessionName eq, ne                  Any valid string.
      Status      eq, ne                  RUNNING|NOT RESPONDING
      Username    eq, ne                  Any valid user name ([Domain\]User).
      Windowtitle eq, ne                  Any valid string.
      Name        Operators               Value
/FO format (NTXP)
Specifies the format to use for the output. Valid values are:
/M [module_name] (NTXP)
Specifies to show module information for each process. When a module is specified, all the processes using that module are shown. When a module is not specified, all the processes for all the modules are shown. Cannot be used with /svc or /v.
/NH (NTXP)
Suppresses column headers in the output. Valid when /fo is set to TABLE or CSV.
/P password (NTXP)
Specifies the password of the user account that is specified in /u.
/S computer (NTXP)
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/SVC (NTXP)
Lists all the service information for each process without truncation. Valid when /fo is set to TABLE.
/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.
/V (NTXP)
Specifies that verbose task information be displayed in the output.

Related

none.


Notes

Tasklist is a replacement for the TList tool.


Examples

none.


Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NTXP NT2003