Skip to content

What is TASKLIST Windows command?

The TASKLIST command in Windows allows users to view a list of currently running processes on their system, along with detailed information about each process. It provides an overview of the processes, including the process ID, session name, memory usage, and more. This command is useful for monitoring system performance and troubleshooting issues related to running processes.

TASKLIST Syntax:

Terminal window
tasklist [/s <system>] [/u <username> [/p [<password>]]] [/m [<module>] | /svc | /v] [/fo {TABLE | LIST | CSV}] [/nh] [/fi <filter>] [/tr "<TaskName>"]

TASKLIST Options:

OptionDescription
/sSpecifies the name or IP address of a remote computer
/uSpecifies the user context under which the command should execute
/pSpecifies the password for the given user context
/mList all tasks that have dynamic-link libraries (DLLs) loaded
/svcDisplay services hosted in each process
/vSpecifies that the verbose information should be displayed
/foSpecifies the format you want the output to be displayed in
/nhSpecifies that the “Column Header” should not be displayed
/fiDisplays tasks that meet the specified criteria
/trSpecifies the title or name of the window

Parameters:

ParameterDescription
The name or IP address of a remote computer
The user context under which the command should execute
The password for the given user context
Display tasks that have dynamic-link libraries (DLLs) loaded
Display tasks that meet the specified criteria
The title or name of the window

TASKLIST Command Usage Examples:

List all running tasks

Terminal window
tasklist

Shows a list of all tasks currently running on the system.

List tasks along with memory usage

Terminal window
tasklist /v

Displays a list of tasks with additional information such as memory usage.

Filter tasks by a specific image name

Terminal window
tasklist /fi "imagename eq notepad.exe"

Lists tasks that match the image name “notepad.exe”.

List tasks on a remote computer

Terminal window
tasklist /s Remote_Computer /u domain\username /p password

Displays a list of tasks running on a remote computer by providing the necessary credentials.

Save the tasklist to a file

Terminal window
tasklist /fo csv > tasks.csv

Saves the tasklist output to a CSV file named tasks.csv.

How do I use tasklist in Windows?

To use the tasklist command in CMD, execute the following command:

Terminal window
tasklist

How can I display detailed information with tasklist?

To display detailed information along with the tasklist command, use the “/v” option.

Terminal window
tasklist /v

How can I filter tasklist results by image name?

To filter tasklist results by image name, you can use the “/fi” option along with the “imagename” parameter.

Terminal window
tasklist /fi "imagename eq chrome.exe"

How to output tasklist results to a file?

To output the tasklist results to a file, you can use the ”>” symbol followed by the file name.

Terminal window
tasklist /fo csv > tasklist_output.csv

How to sort tasklist results by a specific column?

To sort the tasklist results by a specific column, you can use the “/nh” option to skip the header and the “/fi” option with the desired column name.

Terminal window
tasklist /nh /fi "memusage gt 100000" /fi "status eq running" | sort /+55

How can I list processes from a remote system with tasklist?

To list processes from a remote system, use the “/s” option followed by the remote system name.

Terminal window
tasklist /s RemoteComputerName

How do I specify the format of the tasklist output?

To specify the format of the tasklist output, use the “/fo” option followed by the desired format such as “table”, “list”, “csv”, “html”, or “xml”.

Terminal window
tasklist /fo table

How do I display tasklist in a specific language?

To display the tasklist output in a specific language, you can use the “/s” option followed by the language identifier.

Terminal window
tasklist /fi "status eq running" /s ar

Applications of the TASKLIST Command

  1. Displaying a list of currently running processes
  2. Showing detailed information about processes such as process ID, session name, memory usage, and more
  3. Checking for specific processes running on the system
  4. Monitoring CPU and memory usage by processes
  5. Identifying potential issues with specific applications or services
  6. Debugging applications by viewing their associated processes
  7. Listing processes to troubleshoot system performance
  8. Killing or ending processes using the tasklist command options