System command

tasklist command

List running processes and optional service or module details.

Availability: Microsoft Learn command reference spanning Windows client and Windows Server releases; some entries are legacy, role-specific, optional-feature or interactive subcommands.中文

Documented syntax

tasklist [/s <computer> [/u [<domain>\]<username> [/p <password>]]] [{/m <module> | /svc | /v}] [/fo {table | list | csv}] [/nh] [/fi <filter> [/fi <filter> [ ... ]]]

The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.

Examples

List running processes in table format after filtering for the RUNNING status.

tasklist /fi "STATUS eq RUNNING" /fo table

Parameters, options and clauses

tasklist options and parameter descriptions
Option / clauseDescription
/s <computer>Query a local or remote computer; do not prefix the remote name with backslashes.
/u [<domain>\]<username>Use the specified account for a remote query; requires /s.
/p <password>Provide the password for /u; protect it from shell history and logs.
/m [<module>]List processes with a matching DLL module; omit the module to list loaded modules.
/svcShow service information for each process; supported with table output.
/vDisplay verbose process details.
/fo {TABLE|LIST|CSV}Choose the output format; the default is TABLE.
/nhOmit column headers with TABLE or CSV output.
/fi <filter>Filter included or excluded processes; multiple filters can be specified.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory