Çalışmakta olan işlemleri sorgulayın ve bunların bir listesini görüntüleyin.
Bu Görev, o anda çalışmakta olan tüm işlemleri görüntü adı, oturum adı, oturum kimliği, işlem kimliği ve bellek kullanımı ile birlikte listeleyen "TASKLIST" komut satırı yardımcı programını çalıştırır.
Target | Microsoft.Windows.Server.10.0.Computer |
Accessibility | Public |
Category | Maintenance |
Enabled | True |
Remotable | False |
Timeout | 300 |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
PA | ProbeAction | System.CommandExecuterProbe | Default |
<Task ID="Microsoft.Windows.Server.10.0.Computer.ProcessList.Task" Target="ServervNext!Microsoft.Windows.Server.10.0.Computer" Accessibility="Public">
<Category>Maintenance</Category>
<ProbeAction ID="PA" TypeID="System!System.CommandExecuterProbe">
<ApplicationName>%WINDIR%\System32\CMD.EXE</ApplicationName>
<WorkingDirectory/>
<CommandLine>/c $file/process.cmd$</CommandLine>
<TimeoutSeconds>30</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files>
<File>
<Name>process.cmd</Name>
<Contents>
@echo off
if exist "%WINDIR%\System32\TASKLIST.EXE" (
%WINDIR%\System32\TASKLIST.EXE
goto end
)
if exist "%windir%\system32\WindowsPowerShell\v1.0\powershell.exe" (
"%windir%\system32\WindowsPowerShell\v1.0\powershell.exe" -Command Get-Process
goto end
)
:end
</Contents>
<Unicode>false</Unicode>
</File>
</Files>
</ProbeAction>
</Task>