TASKLIST
Displays running tasks by process ID or name on a specified system.
TASKLIST [/S system [/U username [/P [password]]]] [/M [module] | /SVC | /APPS | /V] [/FI filter] [/FO format] [/NH]
Where:
/S system- Specifies the remote system whose activities you want to display. If not specified, the local system will be assumed. If a remote system is specified, theSTATUSandWINDOWTITLEfilters will be ignored./U username- Specifies the user account associated with the activities to display./P [password]- Specifies the password associated with the userusername. If not specified, the user running the command will be prompted for it./M [module]- Displays tasks that use the specified executable or dynamic library. Ifmoduleis not specified, displays all loaded modules./SVC- Displays the services associated with each process./APPS- Displays Windows Store apps and their processes./V- Enables verbose mode./FI filter- Specifies a filter to consider a set of activities. You can specify the wildcardwildcard*. The following table lists the possible filters to use with this option:Left-hand operand Possible operators Possible right-hand operands STATUSEQ,NERUNNING,SUSPENDED,NOT RESPONDING,UNKNOWNIMAGENAMEEQ,NEimage_namePIDEQ,NE,GT,LT,GE,LEprocess_idSESSIONEQ,NE,GT,LT,GE,LEsession_numberSESSIONNAMEEQ,NEsession_nameCPUTIMEEQ,NE,GT,LT,GE,LEhh:mm:ssMEMUSAGEEQ,NE,GT,LT,GE,LEmem_in_kbUSERNAMEEQ,NE[domain\]userMODULESEQ,NEdll_nameSERVICESEQ,NEservice_nameWINDOWTITLEEQ,NEwindow_title/FO format- Specifies the format for the output.formatcan be:TABLE- tableLIST- listCSV- CSV format, i.e. comma-separated values
/NH- Specifies to exclude the header from the output. Valid only forTABLEandCSVformats.
Examples:
1. Display processes that use modules starting with wbem in list and verbose mode:
tasklist /m wbem* /fo list /v
2. Display processes with ID greater than or equal to 1000 with a title starting with Hello every in CSV format, excluding the header from the output:
tasklist /fi "pid ge 1000" /fi "windowtitle eq Hello every*" /fo csv /nh
3. Display processes with an image name starting with culardo on the remote system myneighbor for user luser with password passwrod:
tasklist /s myneighbor /u luser /p passwrod /fi "imagename eq culardo*"
Comments