Learn PowerShell

All chapters, in journey order

Every chapter has its own page, and every lesson has its own page, with objectives, explanations, examples, common mistakes, and a knowledge check. There are 18 chapters and 61 lessons, grouped into 6 stages below.

Journey order: Foundations, PowerShell Basics, Core Skills, Admin Power, Security Power, Projects. Start at the top and work down, or jump straight to the chapter you need.

Stage 1 of 6

Foundations

Start with how Windows works underneath, so later commands make sense.

Steps 1 to 1 of 18 (1 chapter, 5 lessons)

Start this stage: Chapter 1: How Windows Works Underneath

  1. Step 1 of 18: How Windows Works Underneath

    5 lessons: Windows Layers and System Calls, Processes and Threads, Services and Service Accounts, Firmware and Partitioning, Boot Phases and Boot Defenses

    Open chapter page | Start lesson 1

Stage 2 of 6

PowerShell Basics

Learn your first commands, objects, everyday filtering, and reusable scripts.

Steps 2 to 5 of 18 (4 chapters, 18 lessons)

Start this stage: Chapter 2: Your First PowerShell Commands

  1. Step 2 of 18: Your First PowerShell Commands

    5 lessons: What is PowerShell, PowerShell versions, Work environments: ISE, console, and VS Code, Syntax: Verb-Noun and parameters, Getting help: Get-Help, About, and IntelliSense

    Open chapter page | Start lesson 1

  2. Step 3 of 18: Think in Objects, Not Text

    7 lessons: Variables, Arrays, The pipeline and parameter binding, Other command chaining, Objects, Custom objects, The Filter parameter

    Open chapter page | Start lesson 1

  3. Step 4 of 18: Everyday Commands That Save Hours

    4 lessons: Select-Object, Where-Object, and Sort-Object, Verbose, WhatIf, and Confirm, Formatting, input, and output display, Multiple lines in a console

    Open chapter page | Start lesson 1

  4. Step 5 of 18: Turn Commands Into Scripts You Can Reuse

    2 lessons: Scripts and security: execution policy, Your first script and data types

    Open chapter page | Start lesson 1

Stage 3 of 6

Core Skills

Build deeper skills: modules, providers, your own commands, and code that decides and repeats.

Steps 6 to 9 of 18 (4 chapters, 7 lessons)

Start this stage: Chapter 6: Toolboxes You Can Load When You Need Them

  1. Step 6 of 18: Toolboxes You Can Load When You Need Them

    2 lessons: What is a module, Import a module and build a custom module

    Open chapter page | Start lesson 1

  2. Step 7 of 18: One Way to Explore Every Store

    1 lesson: Providers and drives

    Open chapter page | Start lesson 1

  3. Step 8 of 18: Build Your Own Commands

    2 lessons: Functions, Advanced Functions

    Open chapter page | Start lesson 1

  4. Step 9 of 18: Make Scripts Decide and Repeat

    2 lessons: Sequence and selection: if, elseif, else, Iteration: for, while, and foreach

    Open chapter page | Start lesson 1

Stage 4 of 6

Admin Power

Use PowerShell to manage remote computers, people and domains, schedules, firewalls, rules, and everyday tasks.

Steps 10 to 15 of 18 (6 chapters, 19 lessons)

Start this stage: Chapter 10: Run Commands on Other Computers

  1. Step 10 of 18: Run Commands on Other Computers

    2 lessons: Invoke-Command: run a command remotely, Enter-PSSession: an interactive remote session

    Open chapter page | Start lesson 1

  2. Step 11 of 18: Manage People, Computers, and Names

    6 lessons: AD users: create, read, change, and remove, AD computers: join, read, and disconnect, Forest, domain, and domain controllers, RootDSE and why DCPromo fails, Organisational units and groups, DNS records and zones

    Open chapter page | Start lesson 1

  3. Step 12 of 18: Let the Computer Do the Work on Time

    2 lessons: Show, disable, and enable scheduled tasks, Create a scheduled task

    Open chapter page | Start lesson 1

  4. Step 13 of 18: Control Who Gets In and Out

    2 lessons: Firewall profiles, rules, and connection profiles, Create, modify, and enable firewall rules

    Open chapter page | Start lesson 1

  5. Step 14 of 18: Set Rules Once, Apply Them Everywhere

    2 lessons: Get a GPO and read its reports, Back up, restore, and refresh a GPO

    Open chapter page | Start lesson 1

  6. Step 15 of 18: Small Commands, Big Everyday Wins

    5 lessons: Internet: get content from a web page, Fine grained password policies (FGPP), Network: adapters, IP addresses, and DNS, Host, files, time, and keyboard, CSV: import and export

    Open chapter page | Start lesson 1

Stage 5 of 6

Security Power

Learn to read a system like a defender and to keep scripts and settings safe.

Steps 16 to 17 of 18 (2 chapters, 8 lessons)

Start this stage: Chapter 16: PowerShell for Ethical Hackers

  1. Step 16 of 18: PowerShell for Ethical Hackers

    4 lessons: The Safe Enumeration Mindset, Reading Your Own System and Services, Reading Network Listeners, Domain Objects, and Shares, Reading Logs and Hardening Basics

    Open chapter page | Start lesson 1

  2. Step 17 of 18: PowerShell Security and Hardening

    4 lessons: Execution policy and script signing, Constrained language mode, Logging and transcription, Safe scripting and auditing changes

    Open chapter page | Start lesson 1

Stage 6 of 6

Projects

Put it all together in one complete admin tool, from plan to finished report.

Steps 18 to 18 of 18 (1 chapter, 4 lessons)

Start this stage: Chapter 18: PowerShell Automation Projects

  1. Step 18 of 18: PowerShell Automation Projects

    4 lessons: From functions to a tool, Build a report module, Schedule and run it safely, Handle errors and finish

    Open chapter page | Start lesson 1