Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Parent / Child Processes

Direct 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.

When to use this

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.

First 30 seconds

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.

Operational verification

parent creates child → child records ParentProcessId → tree

Evidence · next step

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
Common mistakes
Common traps

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.

Platform / version applicability
Windows execution, automation and observability
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows execution, automation and observability
Scope / prerequisiteUse this topic when tracing how a process was launched, understanding script/shell/application chains, investigating un…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • Get-Process | Sort CPU -Desc | Select -First 10 Name,Id,CPU,WS — top processes
  • Get-CimInstance Win32_Process -Filter "ProcessId=<pid>" | Select Name,ParentProcessId,CommandLine — command line and parent
  • tasklist /v — processes with user and status
  • taskkill /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).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows execution, automation and observability current

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%
Terminology layer

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.

Aliases that resolve here
windows parent child processprocess tree windowsprocess ancestry windows
Embedded reference data

Quick lookup tables

Processes → Parent / Child Processes reference map

Fast lookup boundaries for Processes → Parent / Child Processes.

ItemMeaningEvidence boundary
Parent/creatorProcess that creates anotherprovenance at creation
ChildNew process instancemay continue after creator exits
Command lineLaunch argumentsstrong intent/context evidence when trustworthy
EnvironmentInherited or supplied blockcan explain child-specific behavior
Inherited handleSelected shared object referencerequires explicit inheritance semantics
Confirmation

Confirm action

Continue?