Taskkill Command In Windows Server 2008

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

Introduction

Taskkill 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 can be ended by process ID or image name, and ends one or more tasks or processes. The taskkill command replaces the kill tool.

Syntax

taskkill[/s<Computer>[/u[<Domain>\]<UserName>[/p[<Password>]]]]{[/fi<Filter>][...][/pid<ProcessID>|/im <ImageName>]}[/f][/t]

Parameter of Taskkill 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 and who is specified UserName or Domain\UserName.

/p<Password>

This parameter is specified the password of the user account.

/fi<Filter>

Applies a filter to select a set of tasks.

/pid<ProcessID>

This parameter is specified the process ID of the process to be terminated.

/im<ImageName>

This parameter is specified the image name of the process to be terminated.

/f

This parameter is specified that processes be forcefully terminated.

/t

This parameter is terminated a specified process and any child processes started by it.

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

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.