Accessing the Task Manager (Processes)

The Task Manager can be accessed on a Windows system so that you can examine all the running processes. Here is an example that returns various properties of the specific process named SQLAGENT:

Q: (working set size of it / 1024, page file usage of it / 1024, user of it) 
of processes whose (name of it is "SQLAGENT.EXE")
A: 6492, 9336, TESTBOX\Administrator

You can examine virtually every property of running processes:

(name of it,
(if exists image file of it then pathname of image file of it else "n/a"),
id of it,
page fault count of it,
peak working set size of it,
working set size of it,
quota peak paged pool usage of it,
quota paged pool usage of it,
quota peak nonpaged pool usage of it,
quota nonpaged pool usage of it,
page file usage of it,
peak page file usage of it,
io read count of it,
io write count of it,
io other count of it,
io read size of it,
io write size of it,
io other size of it,
creation time of it,
kernel time of it,
user time of it,
handle count of it,
session id of it,
wow64 of it,
user of it,
(if (base priority of it = normal priority) then "Normal" else
if (base priority of it = high priority) then "High" else
if (base priority of it = idle priority) then "Idle" else
if (base priority of it = realtime priority) then "Realtime" else
if (base priority of it = above normal priority) then "Above Normal" else
if (base priority of it = below normal priority) then "Below Normal" else "N/A")
)
of processes

When you run this expression in the Fixlet debugger, use the Single Clause tab (File > New Tab > New Single Clause Tab). You will iterate through the running processes, returning strings like this:

smss.exe, C:\Windows\System32\smss.exe, 284, 540, 1175552, 69632, 38360, 10648, 
3568, 1624, 454656, 520192, 12, 4, 654, 53790, 4, 10990, ( Wed, 04 Apr 2012 11:06:35 
-0400 ), 00:00:00.031200, 00:00:00.015600, 30, 0, False, NT AUTHORITY\SYSTEM, Normal
csrss.exe, C:\Windows\System32\csrss.exe, 408, 2778, 4558848, 1863680, 155376, 
143920, 15368, 13088, 2154496, 2154496, 497, 0, 5590, 386796, 0, 262035, ( Wed, 
04 Apr 2012 11:06:40 -0400 ), 00:00:01.404009, 00:00:00.218401, 646, 0, False, 
NT AUTHORITY\SYSTEM, Normal
wininit.exe, C:\Windows\System32\wininit.exe, 480, 1351, 4579328, 167936, 106368, 
102384, 13960, 9736, 1531904, 1847296, 1, 0, 1848, 7168, 0, 9374, ( Wed, 04 Apr 
2012 11:06:45 -0400 ), 00:00:00.093600, 00:00:00.046800, 77, 0, False, 
NT AUTHORITY\SYSTEM, High