PowerShell Cheat Sheet

Last Updated: November 21, 2025

Basic Commands

Get-Help cmdlet
Get help for command
Get-Command
List all commands
Get-Process
List running processes
Get-Service
List services
Get-ChildItem
List files (like ls)
Set-Location
Change directory (like cd)

File Operations

Copy-Item
Copy files
Move-Item
Move files
Remove-Item
Delete files
New-Item
Create files/folders
Get-Content
Read file contents

Variables & Pipes

# Variables
$name = "John"
$numbers = 1,2,3,4,5

# Piping
Get-Process | Where-Object {$_.CPU -gt 100}
Get-Service | Sort-Object Status | Select-Object Name,Status
💡 Pro Tip: Use tab completion for command discovery!
← Back to Data Science & ML | Browse all categories | View all cheat sheets