Example usage for tasklist.
tasklist /fi "STATUS eq RUNNING" /fo tableList running processes and optional service or module details.
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.
Example usage for tasklist.
tasklist /fi "STATUS eq RUNNING" /fo table| Option / clause | Description |
|---|---|
/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. |
/svc | Show service information for each process; supported with table output. |
/v | Display verbose process details. |
/fo {TABLE|LIST|CSV} | Choose the output format; the default is TABLE. |
/nh | Omit column headers with TABLE or CSV output. |
/fi <filter> | Filter included or excluded processes; multiple filters can be specified. |
--- | Microsoft documents this switch; use the linked reference for accepted values, effects and version limits. |
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.