Name
tasklist — new in WS2003
Synopsis
Lists running processes.
Syntax
tasklist [/sComputer
] [/uDomain
\User
[/pPassword
]] [{/mModule
| /svc | /v}] [/fo {TABLE | LIST | CSV}] [/nh] [/fiFilterName
[/fiFilterName2
[ ... ]]]
Options
- /s Computer
Name or IP address of a remote computer (if omitted, defaults to local computer).
- /u [Domain\User[ /p [Password]]]
Credentials for running the command (if omitted, defaults to currently logged-on user).
- /m Module
Lists tasks having DLLs loaded that match the pattern.
- /svc
Lists service information for each process without truncation (requires
TABLE
).- /fo {TABLE | LIST | CSV}
Format for displaying driver properties (if omitted, default is
TABLE
).- /nh
Omits header row from displayed information if
/fo
is set toTABLE
orCSV
.- /v
Displays verbose information.
- /fi FilterName
Filters the types of process(es) to kill (be sure to put the filter in quotes):
-
Status
{eq | ne} {RUNNING | NOT RESPONDING | UNKNOWN},Imagename
{eq | ne} Any valid string
-
PID
{eg | ne | gt | lt | ge | le} Any valid positive integer
-
Session
{eg | ne | gt | lt | ge | le} Any valid session number
-
CPUTime
{eg | ne | gt | lt | ge | le} Valid time in format HH:MM:SS
-
Memusage
{eg | ne | gt | lt | ge | le} Any valid integer
-
Username
{eq | ne} Any valid username in format
Domain\UserName
-
Services
{eq | ne} Any valid string
-
Windowtitle
{eq | ne} Any valid string
-
Modules
{eq | ne} Any valid string
-
Examples
Display all running processes:
tasklist
Image Name PID Session Name Session# Mem Usage = = = = = ...
Get Windows Server 2003 in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.