320 x 50 Mobile Ad
Cheat Sheets

PowerShell Cheat Sheet

Transform, format, and optimize your data instantly with this free client-side tool.

Basic

Get-Help Command-Name

Display help for a given command

Get-Command -Verb Get

List all commands with specific verb

Get-Alias

List all PowerShell aliases

Clear-Host (or cls)

Clear terminal screen

Navigation & Files

Get-Location (pwd)

Print current working directory

Set-Location path (cd)

Change directory

Get-ChildItem (ls, dir)

List items in current directory

Copy-Item src dest (cp, copy)

Copy files/directories

Move-Item src dest (mv, move)

Move files/directories

Remove-Item path (rm, del)

Delete files or directories

New-Item -ItemType Directory -Name dir

Create a new directory

New-Item -ItemType File -Name f.txt

Create a new file

Test-Path path

Check if file/folder exists

Get-Content file.txt (cat)

Read file contents

Add-Content file.txt 'text'

Append text to a file

Processes & Services

Get-Process

List running processes

Stop-Process -Name name

Kill process by name

Stop-Process -Id 123

Kill process by ID

Get-Service

List all services and their status

Start-Service name

Start a service

Stop-Service name

Stop a service

Restart-Service name

Restart a service

Networking

Test-Connection google.com

Ping a host (replaces ping)

Get-NetIPAddress

Show IP configuration (replaces ipconfig)

Resolve-DnsName google.com

Lookup DNS record

Invoke-WebRequest -Uri url

Make HTTP request (like curl/wget)

Invoke-RestMethod -Uri url

Make REST API call and parse JSON

Variables & Objects

$var = "value"

Assign value to variable

Get-Variable

List all variables in current scope

$env:PATH

Read environment variable

command | Get-Member

List properties and methods of object

command | Select-Object Prop1, Prop2

Extract specific properties from objects

command | Where-Object { $_.Prop -eq 'val' }

Filter objects by property value

Formatting & Exporting

command | Format-Table

Output as a formatted table

command | Format-List

Output as a list of properties

command | Export-Csv data.csv

Export objects to CSV

Import-Csv data.csv

Read CSV into objects

command | ConvertTo-Json

Convert objects to JSON string

Scripts

Set-ExecutionPolicy RemoteSigned

Allow running local scripts

.\script.ps1

Execute a PowerShell script

Advanced

Advanced Command Snippet

Explore advanced configurations for Powershell

System Optimization

Performance tuning best practices for Powershell

Security Audit

Run security checks and validation for Powershell

320 x 50 Mobile Ad

Frequently Asked Questions

Got questions? We've got answers.

The Powershell Cheatsheet is a quick-reference guide that provides developers with the most essential and frequently used Powershell commands, syntax, and snippets in one centralized place.
This reference is built for both beginners who are just learning Powershell and need a quick syntax lookup, as well as seasoned professionals who need to jog their memory on complex commands.
You can use the real-time search bar at the top of the cheatsheet. Simply type a keyword (like 'delete' or 'file') and the list will instantly filter to show only matching Powershell commands.
Yes! Every command block features a one-click copy button. Just hover over the command and click the copy icon to instantly send the snippet to your clipboard.
The cheatsheet is divided into logical categories such as Basics, Network, Operations, and specific Powershell features. You can click on the category filters at the top to isolate specific groups of commands.
Absolutely. This Powershell reference guide is 100% free, requiring no sign-ups or subscriptions, and is always available when you need it.
While these are standard Powershell operations, you should always understand what a command does before running it, especially if it involves system operations or destructive actions.
Yes, we have recently expanded this cheatsheet to include advanced snippets, best practices, and edge-case syntax that go beyond basic introductory commands.
ADVERTISEMENT
Boost Your Business Online