CMD taskKill 命令詳解 for Server 2012


taskKill 用於按進程 ID 或映像名終止進程。

另請參閱: taskList

基本用法     詳細用法

taskKill /F /im "digitser.exe"
 
taskKill /F /PID 7416
			

基本語法

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

選項參數

參數 EN 解釋 中文翻譯 備注
/s <Computer>

Specifies the name or IP address of a remote computer (do not use backslashes).

The default is the local computer.

指定遠程計算機的名稱或 IP 地址 (不要使用反斜杠)。

默認為本地計算機。

/u <Domain>\<UserName>

Runs the command with the account permissions of the user who is specified by UserName or Domain\UserName.

/u can be specified only if /s is specified.

The default is the permissions of the user who is currently logged on to the computer that is issuing the command.

使用由 UserName 或 Domain\UserName 指定的用戶帳戶權限運行命令。

/u 纔可以指定若 /s 有指定。

默認為目前登錄到發齣命令計算機的用戶權限。

/p <Password> Specifies the password of the user account that is specified in the /u parameter. 在 /u 參數中指定的用戶帳號口令。
/fi <Filter>

Applies a filter to select a set of tasks.

You can use more than one filter or use the wildcard character (*) to specify all tasks or image names.

See the following Filter names, operators, and values, operators, and values.

應用過濾器選擇一組任務。

可以使用多個過濾器或使用 * 通配符,指定所有任務或映像名稱。

見以下過濾器名稱、操作符和值。

/pid <ProcessID> Specifies the process ID of the process to be terminated. 指定要終止進程的進程 ID。
/im <ImageName>

Specifies the image name of the process to be terminated.

Use the wildcard character (*) to specify all image names.

指定要終止進程的映像名稱。

使用 * 通配符能指定所有映像名稱。

/f

Specifies that processes be forcefully terminated.

This parameter is ignored for remote processes;

all remote processes are forcefully terminated.

指定要強製終止的進程。

此參數被忽略對於遠程進程;

強製終止所有遠程進程。

/t Terminates the specified process and any child processes started by it. 終止指定進程及由它啓動的任何子級進程。

基本用法

功能 命令 文字解釋 示例 示例解釋
幫助 taskKill /? 展示幫助信息

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。