Pcornel
Windows · Windows Fundamentals

Kernel

Cheat sheet · https://pcornel.dk/topic.php?topic=2927

Back to the Topic

Answer

The Windows NT kernel is the low-level privileged core responsible for mechanisms such as thread scheduling, interrupt and exception dispatch, trap handling and synchronization. It operates in kernel mode and works closely with the Executive, which provides higher-level operating-system managers.

Remember

  • The kernel is not the whole operating system and not even the whole kernel-mode Executive.
  • ntoskrnl.exe contains both the kernel and major Executive components.
  • Kernel code runs with high privilege and shares kernel address space, so corruption can have system-wide consequences.
  • Scheduling/interrupt mechanics are different boundaries from I/O, memory, security and object management even when they live in the same kernel image.

First checks

  • Get-WinEvent -FilterHashtable @{LogName='System';Id=41,1001,6008} — unexpected shutdowns and bugchecks
  • Get-ChildItem C:\Windows\Minidump — crash dumps
  • winver — kernel build
  • verifier /query — Driver Verifier status

Verify in this order

hardware/driver event → kernel handles it → failure → bugcheck → dump written → logged at next boot

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.

Kernel vs adjacent components

ComponentCore roleDo not infer
NT kernelscheduling, interrupts, traps, synchronizationevery OS manager lives in the narrow kernel
NT Executivehigher-level OS managers and servicesit is user-mode just because it is distinct from the kernel
Device/filter drivershardware and stack-specific kernel functionsa kernel stack automatically makes the driver faulty
ntoskrnl.exe imagecontains kernel + Executive codethe image name alone identifies root cause

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2927

Confirmation

Confirm action

Continue?