列出进程

Microsoft.Windows.Server.6.2.Computer.ProcessList.Task (Task)

查询并显示当前正在运行的进程列表

Knowledge Base article:

摘要

此任务执行“TASKLIST”命令行实用程序,该实用程序列出所有当前正在运行的进程以及映像名称、会话名称、会话 ID、进程 ID 和内存使用率。

Element properties:

TargetMicrosoft.Windows.Server.6.2.Computer
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
PA ProbeAction System.CommandExecuterProbe Default

Source Code:

<Task ID="Microsoft.Windows.Server.6.2.Computer.ProcessList.Task" Target="WindowsServer!Microsoft.Windows.Server.6.2.Computer" Accessibility="Public">
<Category>Maintenance</Category>
<ProbeAction ID="PA" TypeID="System!System.CommandExecuterProbe">
<ApplicationName>%WINDIR%\System32\TASKLIST.EXE</ApplicationName>
<WorkingDirectory/>
<CommandLine>/S $Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</CommandLine>
<TimeoutSeconds>30</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</ProbeAction>
</Task>