PowerShell Documentation
Welcome to the official Microsoft documentation for PowerShell. PowerShell is a cross-platform, open-source automation and configuration management framework, consisting of a command-line shell and associated scripting language built on the .NET framework.
Quick Start
Get up and running with PowerShell quickly. Learn how to install, run your first commands, and understand the basic concepts.
Key Concepts
- Cmdlets: Specialized .NET classes that implement PowerShell commands. They are verb-noun pairs, like
Get-Process
orSet-Location
. - Providers: Allow you to access data stores, such as the registry or file system, as if they were file systems.
- Objects: PowerShell works with objects, not just text, allowing for more structured data manipulation.
- Pipelines: Connect commands to pass objects from one to another.
Featured Topics
- Exploring Cmdlets: A comprehensive guide to PowerShell's built-in commands.
- Writing PowerShell Scripts: Learn the basics of scripting, variables, loops, and conditional statements.
- Managing Modules: Discover how to find, install, and use PowerShell modules to extend functionality.
Example Snippet
# Get running processes and sort them by CPU usage
Get-Process | Sort-Object CPU -Descending | Select-Object -First 5 Name, CPU, WorkingSet
Did You Know?
PowerShell 7 is the latest version, offering cross-platform support for Windows, macOS, and Linux. It includes significant improvements and new features.