Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

tasklist

Feedback

In this article

Displays a list of currently running processes on the local computer or on a remote computer.Tasklist replaces thetlist tool.

Note

This command replaces thetlist tool.

Syntax

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

Parameters

ParameterDescription
/s<computer>Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u<domain>\<username>Runs the command with the account permissions of the user who is specified by<username> or by<domain>\<username>. The/u parameter can be specified only if/s is also specified. The default is the permissions of the user who is currently logged on to the computer that is issuing the command.
/p<password>Specifies the password of the user account that is specified in the/u parameter.
/m<module>Lists all tasks with DLL modules loaded that match the given pattern name. If the module name is not specified, this option displays all modules loaded by each task.
svcLists all the service information for each process without truncation. Valid when the/fo parameter is set totable.
/vDisplays verbose task information in the output. For complete verbose output without truncation, use/v and/svc together.
/fo{table | list | csv}Specifies the format to use for the output. Valid values aretable,list, andcsv. The default format for output istable.
/nhSuppresses column headers in the output. Valid when the/fo parameter is set totable orcsv.
/fi<filter>Specifies the types of processes to include in or exclude from the query. You can use more than one filter or use the wildcard character (\) to specify all tasks or image names. The valid filters are listed in theFilter names, operators, and values section of this article.
/?Displays help at the command prompt.

Filter names, operators, and values

Filter NameValid OperatorsValid Value(s)
STATUSeq, neRUNNING | NOT RESPONDING | UNKNOWN. This filter isn't supported if you specify a remote system.
IMAGENAMEeq, neImage name
PIDeq, ne, gt, lt, ge, lePID value
SESSIONeq, ne, gt, lt, ge, leSession number
SESSIONNAMEeq, neSession name
CPUtimeeq, ne, gt, lt, ge, leCPU time in the formatHH:MM:SS, whereMM andSS are between 0 and 59 andHH is any unsigned number
MEMUSAGEeq, ne, gt, lt, ge, leMemory usage in KB
USERNAMEeq, neAny valid user name (<user> or<domain\user>)
SERVICESeq, neService name
WINDOWTITLEeq, neWindow title. This filter isn't supported if you specify a remote system.
MODULESeq, neDLL name

Examples

To list all tasks with aprocess ID greater than 1000, anddisplay them in csv format, type:

tasklist /v /fi "PID gt 1000" /fo csv

To list the system processes that are currently running, type:

tasklist /fi "USERNAME ne NT AUTHORITY\SYSTEM" /fi "STATUS eq running"

To list detailed information for all processes that are currently running, type:

tasklist /v /fi "STATUS eq running"

To list all the service information for processes on the remote computersrvmain, which has a DLL namebeginning with ntdll, type:

tasklist /s srvmain /svc /fi "MODULES eq ntdll*"

To list the processes on the remote computersrvmain, using the credentials of your currently logged-on user account, type:

tasklist /s srvmain

To list the processes on the remote computersrvmain, using the credentials of theuser account Hiropln, type:

tasklist /s srvmain /u maindom\hiropln /p p@ssW23

Related links


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?