Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Processes

Direct answer

Processes is the Windows runtime branch for understanding an executing program as a resource and security container. A process owns an address space, token/security context, handles and one or more threads; the threads are the schedulable execution units that actually run code.

When to use this

Use this branch when an application is hung, consuming CPU or memory, holding a file, spawning unexpected children, terminating unexpectedly, or when you need to prove which executable, PID, user context and runtime object owns the symptom.

First 30 seconds

1. Get-Process <name> — running? PID?

2. Command line and parent: Get-CimInstance Win32_Process.

3. CPU/memory: Get-Process -Id <pid> | fl CPU,WS,Handles.

4. Owned by a service? tasklist /svc /fi "PID eq <pid>".

5. Stop through its service or app, not blindly.

Operational verification

parent starts the process → threads run → uses memory and handles → exits

Evidence · next step

Inspect the first resource/thread/operation boundary that matches the symptom and correlate it with logs or event traces.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

Do not kill the first same-named process you find. Do not equate high CPU with the root cause without a time window and thread evidence. Do not equate low CPU with health because blocked/deadlocked processes can be idle. Restarting can clear symptoms while destroying the evidence needed to understand why they occurred.

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 · Windows / Windows Server / PowerShell
Key commandtasklist
Scope / prerequisiteUse this branch when an application is hung, consuming CPU or memory, holding a file, spawning unexpected children, ter…
Verify · 1Reference · 2
What next?3 suggested next steps
Child topics (this level)7
Catalog command links3
Evidence1
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

tasklistReference
tasklist

Displays currently running processes on the local or a remote Windows computer, with filters and optional verbose/service/module views. Use it as low-impact process inventory evidence before targeting a specific PID.

Use when: Use tasklist to prove which process instances are present and bind later troubleshooting to a PID. Use /svc when mapping hosted Windows services to process IDs.

Quick note: For handles/modules/process tree, use Process Explorer. For operation chronology, use Process Monitor.

Windows / Windows Server / PowerShell · mixed
taskkillReference
taskkill

Terminates one or more Windows processes by PID, image name or filter. It is a recovery/control command, not a diagnostic substitute; collect the process evidence you need before terminating when safe.

Use when: Use only after proving the exact process instance should be terminated and after capturing state needed for root-cause analysis. Prefer application/service graceful stop where supported.

Quick note: If the process belongs to a Windows service, service-aware Stop-Service/sc.exe control is usually a cleaner first choice than killing the host process.

Windows / Windows Server / PowerShell · mixed
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

Start with a stable identity for the exact instance: PID, process name, full image path, start time and owning user. Then inspect CPU/memory/I/O, thread activity and handles. If the symptom is an attempted file/registry/process operation, capture the event path with Process Monitor. If the problem is ownership of an open object or loaded module, use Process Explorer. Correlate with application/system logs before changing state.

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
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • A process is not the same thing as an executable file; one image can have many process instances.
  • Threads execute inside a process and share that process resource context.
  • Handles are process references to kernel-managed objects such as files, registry keys, events, processes and sections.
  • A parent/child relation describes process creation provenance; it is not by itself a health or lifecycle guarantee.
  • Process exists ≠ application healthy ≠ service healthy ≠ end-to-end function healthy.
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

A Windows process is an executing instance of a program. It provides the virtual address space and runtime resources used by its threads, including open handles, environment and a security context. The operating system assigns a PID for the lifetime of the process; diagnostic work should combine PID with start time/image path because PIDs can be reused after termination.

ReferenceImportant terms & boundaries2 sections · depth on demand

Runtime / control boundary

Keep five layers separate: the executable image on disk, the process object created from it, the security token/context used by that process, the threads that are scheduled, and the objects/resources reached through handles. A failure can live at any one of these layers. A process can exist while every important thread is waiting, deadlocked, blocked on I/O or repeatedly failing an operation.

In depth

A process is a running program with its own virtual address space, handles, security token and one or more threads. Windows identifies processes by PID, and each has a parent, a user context and an integrity level.

AttributeWhy it matters
Image path and command lineWhat is actually running
User/tokenPrivileges and access
Parent processHow it was started (key in security analysis)
Handles and threadsResource use, leaks
Working set/private bytesMemory consumption
Get-Process | Sort-Object CPU -Descending | Select-Object -First 10 Id, ProcessName, CPU, WS
Get-CimInstance Win32_Process -Filter "Name='powershell.exe'" | Select-Object ProcessId, ParentProcessId, CommandLine
Stop-Process -Id 4242 -Force

Sysinternals Process Explorer shows process trees, loaded DLLs, handles and signature verification — essential for both troubleshooting and malware checks.

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. 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 process objectwindows processesprocess id pid windowsprocess troubleshooting windowsrunning process windowswindows pid threads handlestask manager process model
Embedded reference data

Quick lookup tables

Processes reference map

Fast lookup boundaries for Processes.

ItemMeaningEvidence boundary
ProcessResource/security containerPID, image, token, address space, handles and threads
ThreadSchedulable execution unitCPU time, wait/state and owning process
HandleReference to an objectobject type/name/access and owning process
Process treeCreation provenanceparent/creator PID and child instances
Tool outputObservationsnapshot or event evidence; not automatic root cause
Confirmation

Confirm action

Continue?