Pcornel
Windows · Windows Fundamentals

User Mode

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

Back to the Topic

Answer

User mode is the normal execution environment for applications and many Windows services. Each process receives its own virtual address space and handle table, and it must request protected operating-system operations through defined APIs/system calls instead of directly executing privileged kernel operations.

Remember

  • User mode is a CPU/OS protection level, not “non-admin user.”
  • An elevated Administrator process still normally executes application code in user mode.
  • Processes have private virtual address spaces, which limits direct cross-process memory corruption.
  • Protected resources are reached through handles and system services with security checks.
  • A user-mode crash usually terminates or damages that process/service rather than the whole OS.

First checks

  • Get-Process | Sort CPU -Desc | Select -First 10 — top user-mode processes
  • Get-WinEvent -LogName Application -MaxEvents 20 — application errors
  • tasklist /m <dll> — processes using a DLL
  • whoami /priv — privileges of the current token

Verify in this order

process in user mode → calls Windows APIs → system calls into kernel → result or error returned

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.

User-mode properties

PropertyMeaning
Private virtual address spacenormal processes cannot directly address another process's private memory
Handle tableaccess to OS objects is mediated through handles/rights
Access tokenidentity and authorization context used for security decisions
API/system service boundaryprivileged operations are requested rather than executed directly
Process-local failure scopemany crashes terminate only the affected user-mode process

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

Confirmation

Confirm action

Continue?