Foundations
Chapter 1 of 18
Chapter 1: How Windows Works Underneath
Welcome to the part most guides skip, and the part that makes everything else click. This chapter looks under the surface of Windows, at the layers, processes, services, disks, and boot steps that PowerShell works with every day. You do not need to memorise every detail, you just need a clear picture in your head. By the end, you will be able to explain what happens when a program runs, why a service runs in the background, what your disk layout means, and why the first seconds of boot matter so much for security.
5 lessons 3 learning objectives 4 related commands
Topics at a glance: Windows Layers and System Calls, Processes and Threads, Services and Service Accounts, Firmware and Partitioning, Boot Phases and Boot Defenses.
Where this chapter fits
This is the first chapter of the journey, so no earlier chapter is needed before it.
After this chapter comes Chapter 2: Your First PowerShell Commands.
Learning objectives
By the end of this chapter, you will be able to:
- Explain the layers of Windows and how a program asks the system for help
- Describe processes, threads, services, disks, and boot in plain words
- Use safe PowerShell commands to look at processes, services, and disks on your own computer
Lessons in this chapter
Work through the lessons in order. Each lesson page has explanations, examples, common mistakes, and a knowledge check.
Lesson 1: Windows Layers and System Calls
Windows is built in layers, and a program never touches hardware directly. It asks through a system call, and the kernel does the privileged work.
3 things to learn in this lesson
Lesson 2: Processes and Threads
A program is a file on disk, a process is that program running, and threads are the workers inside the process doing the actual work.
3 things to learn in this lesson
Lesson 3: Services and Service Accounts
Services are background processes that keep working without a user sitting at the screen, and each one runs under an account that limits what it can do.
3 things to learn in this lesson
Lesson 4: Firmware and Partitioning
Firmware starts your computer before Windows loads, and partitioning decides how your disk is divided. Modern computers pair UEFI firmware with GPT partitioning.
3 things to learn in this lesson
Lesson 5: Boot Phases and Boot Defenses
Boot is a chain of steps, and each step hands control to the next. Defenses at the start of that chain exist because code that runs before Windows is very hard for Windows to see.
3 things to learn in this lesson
Related command references
These command pages are linked to lessons in this chapter. Each command page has its syntax, parameters, and examples.
Get-Disk
Lists physical disks on the computer, with size, status, and partition style.
From the lesson: Firmware and Partitioning
Get-Partition
Lists partitions on a disk, with drive letter, size, and type.
From the lesson: Firmware and Partitioning
Get-Volume
Lists volumes, which are the formatted parts of disks that you see as drive letters.
From the lesson: Firmware and Partitioning
Get-SecureBootUEFI
Reads a Secure Boot UEFI variable, such as the platform key.
From the lesson: Boot Phases and Boot Defenses
Tip: read the lesson first, then use the command page as a quick reference.