Name

Tasklist — \windows\system32\tasklist.exe

Synopsis

Tasklist is used to list running processes from the command line. Tasklist works together with Taskkill, discussed earlier in this chapter, to provide command-line equivalents to the functionality provided by the Processes tab in Task Manager. Tasklist takes the following command-line parameters:

tasklist [/s system [/u username [/p [password]]]]
    [/m [module] | /svc | /v] [/fi filter]
    [/fo format] [/nh]

The /s, /u, and /p options are identical to those documented under Taskkill, earlier in this chapter.

Option

Description

/m [ module ]

Lists all tasks that have DLL modules loaded that match the pattern, module. If module is omitted, all modules are shown.

/svc

Displays the services in each process.

/v

Verbose mode; display all available information.

/fi filter

Filter the task list with the specified criteria.

/fo format

Specifies the format of the display: type /fo table (the default) for a formatted table, /fo list, for a plaint text list, or /fo csv for a comma-separated report, suitable for importing into a spreadsheet or database.

/nh

Turns off the column headers.

Get Windows XP Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.