Windows Architecture
Cheat sheet · https://pcornel.dk/topic.php?topic=2926
Answer
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.
Remember
- 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.
First checks
Get-CimInstance Win32_OperatingSystem | fl Caption,Version,BuildNumber— OS identitydriverquery /v— loaded driversGet-Service— user-mode servicesGet-Process— user-mode processes
Verify in this order
user-mode applications and services → Win32/NT APIs → executive and kernel → HAL and drivers → hardware
Where it usually breaks
First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.
Windows architecture layers
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2926