PowerShell Reference Guide
A comprehensive, beginner-friendly PowerShell reference guide built for real-world use.
Welcome to my PowerShell Reference Guide - a practical resource designed for me, the IT professional learning PowerShell. I found existing PowerShell documentation clunky and difficult to navigate, so I had Claude help me build something better. If you share that frustration, use and enjoy.
Recently Updated - February 3, 2026
New & Updated Content:
- ✨ Git with PowerShell - Complete Git workflow guide: branching, merging, stashes, resets, cherry-pick, and real-world examples (NEW!)
- ✨ Script Configuration Files - Externalize script settings with PSD1, JSON, XML, and INI formats
- ✨ API Interactions - Complete guide to REST APIs with Invoke-RestMethod, authentication, and practical examples
- ✨ Working with JSON - Comprehensive JSON reference with structured sections, Common Use Cases, and Important Parameters table
Progress: 29 of 46 topics (63%) complete
What You'll Learn
This guide covers everything from PowerShell basics to advanced scripting techniques, organized into clear sections:
Getting Started
Perfect for beginners - learn the fundamentals of PowerShell:
- PowerShell Basics - What is PowerShell, versions, ISE vs VS Code, execution policies
- Cmdlets Introduction - Understanding cmdlets, the pipeline, objects vs text, and aliases
- Help System - Master Get-Help, Update-Help, and finding the right cmdlets
- Your First Script - Step-by-step guide to creating your first PowerShell script
Core Syntax & Fundamentals
Master the building blocks of PowerShell scripting:
- Variables & Data Types - Strings, integers, arrays, hash tables, type casting
- Arrays & Collections - Working with arrays, ArrayLists, and hash tables
- Operators - Comparison, logical, and arithmetic operators
- If Statements & Conditional Logic - Making decisions in your scripts
- Switch Statements - Handling multiple conditions elegantly
- Loops - For, foreach, while, do-while, and do-until loops
- Functions - Creating reusable code with parameters and return values
- Error Handling - Try/catch/finally and managing errors gracefully
- Logging - Implementing effective logging for troubleshooting and monitoring
- Script Structure - Organizing scripts with best practices and standards
- Script Configuration Files - Externalize settings with PSD1, JSON, XML, and INI formats
- Comment-Based Help - Writing documentation for your scripts and functions
Working with Data
Learn to manipulate and format data like a pro:
- Understanding Objects & The Pipeline - Deep dive into PowerShell's object-oriented nature
- The Pipeline - Understanding PowerShell's most powerful feature
- Object Manipulation - Select-Object, Where-Object, ForEach-Object, and calculated properties
- String Manipulation - Working with strings, regex, split, join, and formatting
- Working with JSON - ConvertFrom-Json, ConvertTo-Json, nested objects, arrays, and API integration
- API Interactions - REST API calls, authentication, Invoke-RestMethod, and real-world integrations
- Formatting Output - Format-Table, Format-List, Out-GridView, Export-Csv
Practical Guides
Real-world patterns and solutions for common tasks:
- Searching Files - Master file search techniques with Get-ChildItem, filters, and recursion
- Common PowerShell Patterns - Reusable code templates for everyday scripting tasks
- Git with PowerShell - Git workflows in PowerShell: branching, merging, stashes, resets, and recovery
- One-Liners - Quick PowerShell commands for immediate productivity
Reference
Essential reference materials for PowerShell users:
- Troubleshooting Common Errors - Solutions to frequently encountered PowerShell errors
- Glossary - Comprehensive PowerShell terminology reference
Guiding Principles
This guide is built on the following principles:
- Beginner-friendly - Clear explanations without assuming prior knowledge
- Real-world examples - Practical code you can use immediately
- Consistent formatting - Easy to scan and find what you need
- Practical over theoretical - Focus on what you'll actually use
- Quality over quantity - Every topic is thoroughly explained
Current Status
Overall Progress
29 of 46 planned topics complete
Section Breakdown
| Section | Topics | Status |
|---|---|---|
| Getting Started | 4/4 | ✅ Complete |
| Core Syntax & Fundamentals | 12/15 | 🚧 In Progress |
| Working with Data | 7/7 | ✅ Complete |
| Practical Guides | 4/4 | ✅ Complete |
| Reference | 2/2 | ✅ Complete |
| File & System Operations | 0/8 | 📋 Planned |
| Advanced Topics | 0/8 | 📋 Planned |
Quality Metrics
- Quality Rating: ⭐⭐⭐⭐⭐ 9.5/10
- Code Examples: 370+ practical examples
- Last Updated: February 3, 2026
- Recently Added: Git with PowerShell, Script Configuration Files, API Interactions, comprehensive JSON page
What's Next?
Coming soon to Core Syntax & Fundamentals:
- Parameter Validation - Advanced parameter validation techniques
- Modules & Packaging - Creating and distributing PowerShell modules
- Debugging - Debugging techniques and tools
- Performance Optimization - Making scripts faster and more efficient
Getting Started
New to PowerShell? Start with the Getting Started section and work your way through sequentially.
Already familiar with the basics? Jump to any topic using the navigation menu.
Note: This guide is actively being developed. Check back regularly for new content!