Use this topic when tracing how a process was launched, understanding script/shell/application chains, investigating unexpected child processes, or correlating inherited environment/handles and security context.
Parent / Child Processes
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.
1. Get-CimInstance Win32_Process | Select ProcessId,ParentProcessId,Name.
2. Tree view: Process Explorer.
3. Unexpected parent (e.g. Office → cmd.exe) → investigate.
4. Stop the tree: taskkill /PID <pid> /T.
5. Services' children belong to services.exe-spawned processes.
parent creates child → child records ParentProcessId → tree
Inspect the child behavior, security context and relevant inherited/passed data at the first failing boundary.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
PID reuse can make stale parent IDs misleading in historical snapshots. Parent name alone is weak evidence. Also avoid assuming every child created by a trusted process is trusted; plugins, scripts, user-controlled paths and external content can influence launch behavior.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
When a suspicious or unexpected child is observed, capture parent PID/start time, child PID/start time, full paths, users, command lines and timestamp. Correlate with the event that caused creation. If the question is inheritance, inspect the actual environment/handles rather than inferring them from ancestry.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
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
ReferenceWhat it is1 section · depth on demand
Core model
Windows CreateProcess-style creation yields a new process and primary thread. Diagnostics often present this as a tree because ancestry is operationally useful: shells launch programs, service hosts launch helpers, installers launch child processes and applications spawn workers.
ReferenceImportant terms & boundaries2 sections · depth on demand
Runtime / control boundary
The tree should not be overinterpreted. Windows does not make every child dependent on the lifetime of the creator. Separate process-management mechanisms such as job objects can impose group behavior, but that is a different control boundary from simply being a child process.
In depth
Every process records the PID of its creator (parent). The process tree helps detect suspicious behaviour — Word spawning PowerShell, services.exe children that are not services, lsass.exe with a parent other than wininit.exe.
Get-CimInstance Win32_Process | Select ProcessId,ParentProcessId,Name,CommandLine
Parent PIDs are not updated when the parent exits and can be spoofed by malware, so security tools combine them with creation time and Sysmon event 1 (process create with parent command line).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Processes → Parent / Child Processes. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/win32/procthread/process-and-thread-functions · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Processes → Parent / Child Processes reference map
Fast lookup boundaries for Processes → Parent / Child Processes.
| 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 |