> DOS 中文参考手册 > tasklist

TASKLIST

(tasklist)


TASKLIST [/S system [/U username [/P [password]]]]

[/M [module] | /SVC | /V] [/FI filter] [/FO format] [/NH]

描述:

这个命令行工具显示应用程序和本地或远程系统上运行的相关任务/进程的列表。

参数列表:

/S system 指定连接到的远程系统。

/U [DOMain\]user 指定应该在哪个用户上下文执行这个命令。

/P [password] 为提供的用户上下文指定密码。如果忽略,提示输入。

/M [module] 列出所有其中符合指定模式名的 DLL 模块的所有任务。

如果没有指定模块名,则显示每个任务加载的所有模块。

/SVC 显示每个进程中的服务。

/V 指定要显示详述信息。

/FI filter 显示一系列符合筛选器指定的标准的任务。

/FO format 指定输出格式。

有效值: "TABLE"、"LIST"、"CSV"。

/NH 指定栏标头不应该在输出中显示。

只对 "TABLE" 和 "CSV" 格式有效。

/? 显示帮助/用法。

筛选器:

筛选器名 有效操作符 有效值

----------- --------------- --------------

STATUS eq, ne 正在运行 | 没有响应

IMAGENAME eq, ne 图像名

PID eq, ne, gt, lt, ge, le PID 值

session eq, ne, gt, lt, ge, le 会话编号

SESSIONNAME eq, ne 会话名

CPUTIME eq, ne, gt, lt, ge, le CPU 时间,格式为

hh:mm:ss。

hh - 时,

mm - 分,ss - 秒

MEMUSAGE eq, ne, gt, lt, ge, le 内存使用量(KB)

USERNAME eq, ne 用户名,格式为 [domain\]user

SERVICES eq, ne 服务名

WINDOWTITLE eq, ne 窗口标题

MODULES eq, ne DLL 名

例如:

TASKLIST

TASKLIST /M

TASKLIST /V

TASKLIST /SVC

TASKLIST /M wbem*

TASKLIST /S system /FO LIST

TASKLIST /S system /U domain\username /FO CSV /NH

TASKLIST /S system /U username /P password /FO TABLE /NH

TASKLIST /FI "USERNAME ne NT AUTHORITY\SYSTEM" /FI "STATUS eq running"


TASKLIST [/S system [/U username [/P [password]]]]

[/M [module] | /SVC | /V] [/FI filter] [/FO format] [/NH]

Description:

This command line tool displays a list of application(s) and associated task(s)/process(es) currently running on either a local or remote system.

Parameter List:

/S system Specifies the remote system to connect to.

/U [domain\]user Specifies the user context under which the command should execute.

/P [password] Specifies the password for the given user context. Prompts for input if omitted.

/M [module] Lists all tasks that have DLL modules loaded in them that match the given pattern name.

If the module name is not specified, displays all modules loaded by each task.

/SVC Displays services in each process.

/V Specifies that the verbose information is to be displayed.

/FI filter Displays a set of tasks that match a given criteria specified by the filter.

/FO format Specifies the output format. Valid values: "TABLE", "LIST", "CSV".

/NH Specifies that the "Column header" should not be displayed in the output.

Valid only for "TABLE" and "CSV" formats.

/? Displays this help/usage.

Filters:

Filter Name Valid Operators Valid Value(s)

----------- --------------- --------------

STATUS eq, ne RUNNING | NOT RESPONDING

IMAGENAME eq, ne Image name

PID eq, ne, gt, lt, ge, le PID value

SESSION eq, ne, gt, lt, ge, le Session number

SESSIONNAME eq, ne Session name

CPUTIME eq, ne, gt, lt, ge, le CPU time in the format

of hh:mm:ss.

hh - hours,

mm - minutes, ss - seconds

MEMUSAGE eq, ne, gt, lt, ge, le Memory usage in KB

USERNAME eq, ne User name in [domain\]user

format

SERVICES eq, ne Service name

WINDOWTITLE eq, ne Window title

MODULES eq, ne DLL name

Examples:

TASKLIST

TASKLIST /M

TASKLIST /V

TASKLIST /SVC

TASKLIST /M wbem*

TASKLIST /S system /FO LIST

TASKLIST /S system /U domain\username /FO CSV /NH

TASKLIST /S system /U username /P password /FO TABLE /NH

TASKLIST /FI "USERNAME ne NT AUTHORITY\SYSTEM" /FI "STATUS eq running"


上一篇:
下一篇: