Use Windows Architecture to place a failure in the right layer: application/API, user-mode service, system-call boundary, Executive subsystem, kernel, driver or hardware-facing layer.
Windows Architecture
Windows uses a layered NT architecture. Applications run in user mode and call Windows APIs; anything needing full privileges crosses into kernel mode, where the kernel, executive services, drivers and the hardware abstraction layer run.
1. Identify whether the failure is a process, a service, a driver or the kernel.
2. Process/app → Get-Process, event logs (Application).
3. Service → Get-Service <name>, System log.
4. Driver/kernel → driverquery, bugcheck in System log (Event 1001/41).
5. Collect logs for the right layer.
user-mode applications and services → Win32/NT APIs → executive and kernel → HAL and drivers → hardware
Collect layer-specific logs, state or dump evidence at the first failed boundary.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
- A Windows service is not automatically kernel-mode code.
- An Administrator process still normally executes in user mode.
- A driver failure can surface as an application error even when the application itself is correct.
- A system-wide symptom increases suspicion of shared kernel/service infrastructure, but scope alone is not evidence of root cause.
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 Trace a request through the layers Verify boundary
For one failing operation, identify:
1. The caller: process, service or management tool.
2. The API/runtime used by the caller.
3. Whether the operation needs a system call.
4. The Executive subsystem or driver stack that owns the resource.
5. The final device, filesystem, network or security resource.
This produces a much better troubleshooting boundary than starting with every Windows component at once.
Step 2 Diagnosis Narrow the fault
Windows Architecture — discriminating diagnosis for Windows Fundamentals → Windows Architecture. Use this chain of steps: Concrete boundaries: configured object → owning Windows component → dependency/provider → effective runtime state → event/result → original user/service workload. IF the stable identity (same computer, service/process, security context and concrete runtime object) cannot be matched between adjacent layers, stop and correct scope before interpreting downstream absence. ELSE IF the object is transitional (service start-pending/stop-pending, policy propagation, failover or retry state with progress in event/timestamp/state data), inspect the responsible timer/retry/sequence/queue and show whether it progresses. ELSE IF the owner looks known-good (configured state is consumed by the responsible Windows subsystem and the resulting runtime object/service state matches the intended operation), verify the next consumer/effective state rather than repeating the same local check. A broken signature is SCM/provider/kernel state disagrees with configuration, dependency is unavailable, repeated transition resets or the original client operation still fails It is a candidate boundary, not automatic root cause.
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.
- Windows is not only the kernel. Many important operating-system processes and services run in user mode.
ntoskrnl.execontains both the NT kernel and Executive components; the narrow term kernel is smaller than everything people casually call the Windows kernel.- System calls cross the user/kernel boundary; ordinary API calls do not necessarily require a transition.
- Drivers can be kernel-mode or user-mode, depending on the driver model and device class.
- A fault in one user-mode process is usually isolated; corruption in kernel mode can affect the entire OS.
Get-CimInstance Win32_OperatingSystem | fl Caption,Version,BuildNumber— OS identitydriverquery /v— loaded driversGet-Service— user-mode servicesGet-Process— user-mode processes
ReferenceWhat it is1 section · depth on demand
Practical NT architecture
Windows uses the NT architecture rather than a single monolithic “application talks directly to kernel” model. User-mode applications and services run in isolated processes. They use APIs implemented by user-mode libraries and subsystems; protected operations enter kernel mode through the system-service interface. Kernel-mode components include the Executive, the lower-level kernel, device and filesystem drivers, and hardware-abstraction code. This separation provides isolation while still allowing controlled access to files, memory, devices, networking and security objects.
ReferenceHow it works1 section · depth on demand
How it works
Windows Architecture — state ownership for Windows Fundamentals → Windows Architecture. Identity to preserve: same computer, service/process, security context and concrete runtime object Owner sequence: Windows administration surfaces expose object configuration and lifecycle state through services, CIM/WMI, registry, eventing and role-specific APIs. Known-good: configured state is consumed by the responsible Windows subsystem and the resulting runtime object/service state matches the intended operation Transitional: service start-pending/stop-pending, policy propagation, failover or retry state with progress in event/timestamp/state data Broken: SCM/provider/kernel state disagrees with configuration, dependency is unavailable, repeated transition resets or the original client operation still fails Do not collapse configured/requested state, owner state, programmed/effective state and workload outcome into one “healthy” flag. What this does not show: GUI/registry/configuration presence does not show effective runtime state or end-to-end service behavior Scope: Windows/Windows Server; cmdlet fields, event IDs and defaults vary by OS build and installed role.
ReferenceImportant terms & boundaries2 sections · depth on demand
Executive vs kernel
The word kernel is used in two ways:
- In casual troubleshooting, people often use “kernel” for nearly all privileged Windows code.
- In the narrower NT architecture, the kernel handles low-level mechanisms such as thread scheduling, interrupt/trap dispatch and synchronization, while the Executive supplies higher-level managers for objects, processes, virtual memory, I/O, security and other OS services.
ntoskrnl.exe contains both categories, so file/module names alone do not preserve that conceptual distinction.
In depth
Windows architecture separates user mode, where applications and most services run with restricted access, from kernel mode, where the executive, kernel, drivers and HAL run with full system privileges. System calls cross this boundary through ntdll.dll, which turns API calls into kernel transitions.
| Layer | Contents |
|---|---|
| Applications | Win32/.NET programs, services |
| Subsystem DLLs | kernel32.dll, user32.dll, advapi32.dll |
| Native API | ntdll.dll |
| Executive | Object manager, memory manager, I/O manager, security reference monitor, process manager |
| Kernel | Scheduling, interrupts, synchronisation |
| Drivers | File systems, network, storage, devices |
| HAL | Hardware abstraction |
Virtualisation-based security (VBS) adds a separate secure kernel (VTL1) isolated by the hypervisor, which protects features such as Credential Guard and HVCI from the normal kernel — even a compromised driver cannot read those secrets.
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 Windows Fundamentals → Windows Architecture. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/ · 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
Windows architecture layers
A practical map from user-mode code to privileged operating-system components.
| Layer | Typical contents | Failure scope |
|---|---|---|
| User mode | applications, many services, user-mode frameworks | usually process/service scoped |
| System-call boundary | transition from user code to protected OS services | request-specific |
| NT Executive | process, memory, I/O, object, security and other managers | system-wide subsystem impact |
| NT kernel | scheduling, interrupts, traps, low-level synchronization | system-wide |
| Drivers | device/filesystem/filter drivers; some user-mode drivers also exist | device to system-wide |
| HAL / hardware interface | platform-specific hardware abstraction | platform/system-wide |