Notes on software development (Windows) and computer system administration.

2005-09-08

tasklist

Examples:

Show task information on the Cygwin SSH daemon:
C:\>tasklist /FI "IMAGENAME eq sshd.exe"

Image Name PID Session Name Session# Mem Usage
========================= ====== ================ ======== ============
sshd.exe 2248 Console 0 3,508 K

Show services for each process:
C:\>tasklist /SVC

Image Name PID Services
========================= ====== =============================================
System Idle Process 0 N/A
System 4 N/A
smss.exe 952 N/A
csrss.exe 1068 N/A
winlogon.exe 1092 N/A
services.exe 1136 Eventlog, PlugPlay
lsass.exe 1148 Netlogon, PolicyAgent, ProtectedStorage,
SamSs