Start here
Guides
Read these first if PowerShell is new. Then jump to the cheat sheet.
-
What is PowerShell?
A shell and a scripting language that works with objects, not just text.
-
Open PowerShell
Windows Terminal, pwsh, and the old Windows PowerShell 5.1 host.
-
Execution policy
Why a script is blocked, what each policy means, and what to change (if anything).
-
Run a script
Download a .ps1, unblock it, and run it with parameters from the right folder.
-
Pipelines
Left to right, objects not text, and why Format-Table has to be last.
-
Safety
WhatIf, Confirm, and why you should not paste blindly from the internet (including this site).
-
Objects and properties
Why PowerShell output is not just text, and how to see and pick the parts you want.
-
Variables
Store a value with $name = ..., reuse it, and know when quotes expand it.
-
Comparison operators
-eq, -like, -match, and why > writes a file instead of comparing.
-
Your profile and modules
Make shortcuts that load every time, and add commands others have written.