Tasklist Command In Windows Server 2008

In this article I am going to explain about Tasklist command in Windows Server 2008 operating system and also explain it's related syntax.
  • 4154

Introduction

Tasklist command is Windows Server 2008 command line tool. This command is available in Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows XP.

This command is display a list of currently running processes on the local computer or on a remote computer. A Tasklist replaces the tlist tool.

Syntax

tasklist [/s <Computer> [/u [<Domain>\]<UserName> [/p <Password>]]] [{/m <Module> | /svc | /v}] [/fo {table | list | 
csv}] [/nh] [/fi <Filter> [/fi <Filter> [ ... ]]]

Parameter of Tasklist command

Parameter

Description

/s <Computer>

This parameter is specified the name or IP address of a remote computer (do not use backslashes).

/u [<Domain>\]<UserName>

This parameter can run this command with the account permissions of the user who is specified by UserName or Domain\UserName.

/p <Password>

This parameter is specified the password of the user account.

/m <Module>

This parameter is provide lists to all tasks with DLL modules that match the given pattern name.

/svc

This parameter is provide Lists all the service information for each process without truncation.

/v

Displays verbose task information in the output.

/fo{table | list | csv}

This parameter is specified the format to use for output.

/nh

Suppresses column headers in the output.

/fi <Filter>

This parameter is specified the types of processes to include in or exclude from the query.

/?

Displays help at the command prompt.

File names, operators and values

Filter Name

Valid operators

Valid Values

STATUS

eq, ne

RUNNING | NOT RESPONDING | UNKNOWN

IMAGENAME

eq, ne

Image name

PID

eq, ne, gt, It, ge, le

PID value

SESSION

eq, ne, gt, It, ge, le

Session number

CPUTIME

eq, ne, gt, It, ge, le

CPU time in the format HH:MM:SS,

MEMUSAGE

eq, ne, gt, It, ge, le

Memory usage in KB

USERNAME

eq, ne

Any valid user name

SERVICES

eq, ne

Service name

WINDOWTITLE

eq, ne

Window title

MODULES

eq, ne

DLL name

sessionname

eq, ne,

session name

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.