Free PowerShell tutorials
Learn PowerShell with Real Scripts and Examples
Step-by-step PowerShell tutorials for IT admins, sysadmins and developers. Every guide gives you a script you can copy, explains what each line does and shows the output, from your first command to automating files, Windows servers and SharePoint Online.
Get the Free 100 Cmdlets Ebook Start Learning PowerShell
- 350+Free tutorials
- 13×Microsoft MVP author
- 18+ yearsHands-on experience
- 7 & 5.1PowerShell versions tested
# Find .log files older than 30 days PS C:\Scripts> Get-ChildItem C:\Logs -Filter *.log | >> Where-Object LastWriteTime -lt (Get-Date).AddDays(-30) | >> Select-Object Name, LastWriteTime Name LastWriteTime ---- ------------- app-0712.log 7/12/2026 9:14:02 AM app-0713.log 7/13/2026 9:15:47 AM PS C:\Scripts>
- Copy-and-run scripts with the real output for every example
- Fixes for real error messages admins hit every day
- Kept up to date as PowerShell and Windows change
Where do you want to go?
Pick a PowerShell Learning Path
Follow the steps in order. Each one builds on the last, so by the end you can write the script yourself.
Beginner
New to PowerShell
Go from your first command to scripts with functions and error handling.
