In windows Tasklist is the command but how list the Running process and their child process in windows 7
Asked
Active
Viewed 3.4k times
1 Answers
30
You can get a list of processes with the PID and parent PID using:
wmic process get Caption,ParentProcessId,ProcessId
Given a parent PID you can list the immediate children with something like:
wmic process where (ParentProcessId=2480) get Caption,ProcessId
-
2Example has incorrect where clause formatting. It actually shall be with parenthesis `wmic process where ("ParentProcessId=2480") get Caption,ProcessId` – myszon Jun 16 '20 at 14:12