Parent / Child Processes
Cheat sheet · https://pcornel.dk/topic.php?topic=3010
Answer
A child process is created by another process. Process trees are useful for understanding provenance, launch chains and inherited context, but the creation relationship is not the same as a permanent ownership or lifecycle dependency.
Remember
- Parent/child primarily describes process creation provenance.
- A child normally runs independently after creation; the parent exiting does not inherently terminate the child.
- A child can inherit selected handles, environment and other context depending on creation settings.
- Security context can be explicitly changed by creation APIs; do not assume child identity solely from the parent name.
- Process trees are strong context for investigation but not proof of maliciousness or causation.
First checks
Get-Process | Sort CPU -Desc | Select -First 10 Name,Id,CPU,WS— top processesGet-CimInstance Win32_Process -Filter "ProcessId=<pid>" | Select Name,ParentProcessId,CommandLine— command line and parenttasklist /v— processes with user and statustaskkill /PID <pid> /T— stop a process tree
Verify in this order
parent creates child → child records ParentProcessId → tree
Where it usually breaks
First mismatch in definition/configuration → security context → service/task/process creation → runtime state → output/side effect → event/performance evidence; preserve identity/native error/pre-state before mutation.
Processes → Parent / Child Processes reference map
| Item | Meaning | Evidence boundary |
|---|---|---|
| Parent/creator | Process that creates another | provenance at creation |
| Child | New process instance | may continue after creator exits |
| Command line | Launch arguments | strong intent/context evidence when trustworthy |
| Environment | Inherited or supplied block | can explain child-specific behavior |
| Inherited handle | Selected shared object reference | requires explicit inheritance semantics |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3010