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.
Processes
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.
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.
parent starts the process → threads run → uses memory and handles → exits
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
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.
Operational reference
Fast context before you go deeper.
tasklistPrimary Commands
Configuration and operational commands for this Topic.
tasklistReferenceDisplays 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 · mixedtaskkillReferenceTerminates 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 · mixedGet-Process | Sort-Object CPU -Descending | Select-Object -First 10VerifyLists the ten processes that have used the most CPU time since they started.
Use when: The machine is slow and you want to see which process uses CPU or memory.
Quick note: Sort by WS for memory use. For current CPU load use Get-Counter "\Process(*)\% Processor Time".
Windows / Windows Server / PowerShell · state · verifiesVerification & 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
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 · 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.
Subtopics
Go one level deeper into this subject.
Windows threads as schedulable execution units inside a process, including shared process state, per-thread state, waits and troubleshooting boundaries.
Subtopic HandlesWindows handles: process-local references to kernel-managed objects, access rights, inheritance, lifetime and handle-leak troubleshooting.
Subtopic Parent / Child ProcessesWindows process creation relationships: creator/parent and child processes, inheritance, process-tree interpretation and provenance boundaries.
Subtopic Task ManagerWindows Task Manager as a built-in snapshot and control interface for applications, processes, performance, users, startup and service-related state.
Subtopic Process ExplorerMicrosoft Sysinternals Process Explorer for deep process tree, handle, DLL/module, account and runtime inspection.
Subtopic Process MonitorMicrosoft Sysinternals Process Monitor for real-time file system, Registry and process/thread operation tracing with filters and event properties.
Subtopic Process TroubleshootingEvidence-first workflow for Windows process failures: wrong instance, crash, hang, CPU/memory/I/O pressure, handle leaks, access failures and safe recovery.
- 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.
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
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.
| Attribute | Why it matters |
|---|---|
| Image path and command line | What is actually running |
| User/token | Privileges and access |
| Parent process | How it was started (key in security analysis) |
| Handles and threads | Resource use, leaks |
| Working set/private bytes | Memory 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.
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. 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 reference map
Fast lookup boundaries for Processes.
| Item | Meaning | Evidence boundary |
|---|---|---|
| Process | Resource/security container | PID, image, token, address space, handles and threads |
| Thread | Schedulable execution unit | CPU time, wait/state and owning process |
| Handle | Reference to an object | object type/name/access and owning process |
| Process tree | Creation provenance | parent/creator PID and child instances |
| Tool output | Observation | snapshot or event evidence; not automatic root cause |