Windows Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=2925
Answer
Windows Fundamentals is the base operating-system model for the Windows Domain. It explains how modern Windows separates user-mode applications from privileged kernel-mode components, how to identify the exact installed Windows release, and where common system and configuration context is stored.
Remember
- User mode and kernel mode are protection boundaries, not product editions or account privilege levels.
- Edition, version and build are different identifiers: edition describes the product/licensing family, while version/build identify the serviced release and binary level.
- Environment variables are process state. Persistent user/machine values normally affect newly created processes rather than instantly rewriting every running process.
- PATH is command-resolution input, not a guarantee that every shell resolves names in exactly the same way.
- Registry configuration is not the same as effective runtime state; policy, services, cached state and process lifetime can change the observed result.
First checks
Get-ComputerInfo -Property OsName,OsVersion,OsBuildNumber,WindowsEditionId— edition, version and buildwinver— version dialogsysteminfo— OS, hotfixes, boot time, domain$PSVersionTable— PowerShell versionGet-CimInstance Win32_OperatingSystem— OS details via CIM
Verify in this order
edition and build → kernel and drivers → services → user session and policy → application
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 Fundamentals boundary map
| Question | Primary concept | What to verify |
|---|---|---|
| What Windows is this? | Edition / Version / Build | exact edition, version and OS build |
| Where does this code run? | User Mode / Kernel Mode | process, service, driver and transition boundary |
| What facts describe this host? | System Information | OS, hardware, firmware, memory, virtualization context |
| Why does one process see a different value? | Environment Variables | process, user and machine scope |
| Why is a command found/not found? | PATH | shell resolution order, PATH content, executable location |
| Where is persistent Windows configuration stored? | Registry | hive, key, value, policy/effective state |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2925