Cmdlet reference

PowerShell Commands with Examples

The PowerShell commands you’ll use most, grouped by task. Each one has a plain-English description, a copy-ready example and a link to a full tutorial or Microsoft’s documentation.

Browse the commands Get the 100 cmdlets PDF

  • 91Commands with examples
  • 11Task groups
  • 38Aliases explained
  • 7 & 5.1Examples checked in both

Updated September 30, 2026

# Find every command that works with services
PS C:\> Get-Command -Noun Service | Select-Object -Property Name

Name
----
Get-Service
New-Service
Remove-Service
Restart-Service
Resume-Service
Set-Service
Start-Service
Stop-Service
Suspend-Service

PS C:\> 
Real output from PowerShell 7.6Find any command

Read any command

How PowerShell Commands Work

PowerShell commands are called cmdlets. Once you know these four ideas, you can read almost any script.

  • Verb-Noun names

    The verb says what happens and the noun says to what: Get-Service, Stop-Process. Microsoft keeps a list of approved verbs.

  • Parameters

    Options start with a dash, like -Path or -Recurse. Press Tab to complete names as you type.

  • The pipeline

    The | passes objects, not text, from one command to the next: Get-Service | Sort-Object Status.

  • Aliases

    Short names like ls and cd run full cmdlets. Handy at the prompt, but use full names in scripts.

  • 1. Find a command
    Get-Command *-Item
    Lists every command whose name ends in -Item.
  • 2. Learn how to use it
    Get-Help Copy-Item -Examples
    Shows ready-made examples for that command.
  • 3. See what it returns
    Get-Item C:\Windows | Get-Member
    Lists the properties you can select, sort or filter on.

Microsoft explains the basics in Discover PowerShell commands. New to PowerShell? Start with the step-by-step learning path.

The command list

PowerShell Commands by Category

Each example uses real parameters that exist in both PowerShell 7 and Windows PowerShell 5.1. Commands that change or delete things include -WhatIf, so you can try them safely.

Showing all 91

Find commands and get help

Three commands that teach you every other command. Learn these first.

5 commands
  • Get-CommandFinds commands by name, verb, noun or module.
    Get-Command -Noun Service
    Docs
  • Get-HelpShows help, syntax and examples for any command.
    Get-Help Get-ChildItem -Examples
    Docs
  • Get-MemberLists the properties and methods of the objects a command returns.
    Get-Process | Get-Member -MemberType Property
    Tutorial Docs
  • Get-AliasShows which command an alias such as ls or cd runs.
    Get-Alias -Name ls, cd, cat
    Docs
  • Get-HistoryLists the commands you've run in the current session.
    Get-History -Count 10
    Tutorial Docs

Files and folders

Navigate, create, copy, move, read and delete files and folders.

17 commands

Filter, sort and shape objects

The pipeline commands that turn raw output into exactly what you need.

9 commands

Show output and ask for input

Display results, format them and read what the user types.

8 commands

CSV, JSON and HTML data

Import, export and convert structured data.

6 commands

Processes and services

See what's running, then start, stop and configure it.

7 commands

Windows system information

Check the computer, its hardware, updates, events and settings.

12 commands

Network and web

Test connections, check IP settings and call web APIs.

7 commands

Variables and environment

Create, read and remove variables and environment variables.

6 commands

Users, security and scripts

Local accounts, permissions, certificates and script execution.

8 commands

Remoting and modules

Run commands on other computers and add new commands with modules.

6 commands

No command matches that word. Try a shorter word, or search the whole site.

100 PowerShell Cmdlets free PDF ebook by Bijay Kumar

Free PDF download

Keep 100 PowerShell Cmdlets in One PDF

A printable companion to this page: 100 cmdlets, each with a short explanation and an example you can run.

You’ll also get new PowerShell tutorials by email. Unsubscribe anytime.
Send Me the Ebook

Shortcuts and translations

PowerShell Aliases and CMD Equivalents

Common aliases

Taken from Get-Alias in PowerShell 7.6 and 5.1. Run Get-Alias to see yours. More in about_Aliases.

  • Get-ChildItemls, dir, gci
  • Set-Locationcd, sl
  • Get-Locationpwd, gl
  • Get-Contentcat, gc, type
  • Set-Contentsc5.1 only. In PowerShell 7, sc runs sc.exe.
  • Add-Contentac
  • Copy-Itemcp, copy, cpi
  • Move-Itemmv, move, mi
  • Remove-Itemrm, del, ri
  • Rename-Itemren, rni
  • New-Itemni
  • Get-Itemgi
  • Where-Object?, where
  • ForEach-Object%, foreach
  • Select-Objectselect
  • Sort-Objectsort
  • Group-Objectgroup
  • Measure-Objectmeasure
  • Compare-Objectdiff, compare
  • Select-Stringsls
  • Tee-Objecttee
  • Format-Tableft
  • Format-Listfl
  • Out-GridViewogv
  • Write-Outputecho, write
  • Clear-Hostcls, clear
  • Get-Processps, gps
  • Stop-Processkill, spps
  • Get-Servicegsv
  • Invoke-WebRequestiwr, curl, wgetcurl and wget are 5.1 only. In PowerShell 7, curl runs curl.exe.
  • Invoke-RestMethodirm
  • Invoke-Commandicm
  • Enter-PSSessionetsn
  • Import-Moduleipmo
  • Get-Commandgcm
  • Get-Membergm
  • Get-Aliasgal
  • Get-Historyh, history

Command Prompt and Linux to PowerShell

Already know CMD or Bash? This is what to type in PowerShell instead. See PowerShell vs. Command Prompt.

CMDLinuxPowerShell
dirlsGet-ChildItem
cdcdSet-Location
copycpCopy-Item
movemvMove-Item
delrmRemove-Item
typecatGet-Content
findstrgrepSelect-String
tasklistpsGet-Process
taskkillkillStop-Process
ipconfigip addrGet-NetIPAddress
pingpingTest-Connection
netstatnetstat / ssGet-NetTCPConnection
nslookupdigResolve-DnsName
systeminfouname -aGet-ComputerInfo
shutdown /rrebootRestart-Computer
sc querysystemctlGet-Service
clsclearClear-Host
echoechoWrite-Output

PowerShell Commands: FAQs

What are PowerShell commands called?

Most are cmdlets (pronounced command-lets), named with a Verb-Noun pattern such as Get-Service. PowerShell can also run functions, aliases, scripts and regular programs like ping.exe.

How do I list all PowerShell commands?

Run Get-Command. Narrow it with -Verb, -Noun or -Module, for example Get-Command -Noun Service, or use wildcards like Get-Command *-Item.

How do I get help for a PowerShell command?

Run Get-Help followed by the command name, such as Get-Help Get-ChildItem -Examples. Add -Online to open the Microsoft Learn page, and run Update-Help once to download full help files.

Are PowerShell commands case-sensitive?

No. Get-Process, get-process and GET-PROCESS all work. Using the standard capitalization just makes scripts easier to read.

What is the difference between a cmdlet and an alias?

A cmdlet is the command itself. An alias is a short name for it, like ls for Get-ChildItem. Use aliases at the prompt, but full names in scripts.

Why do some aliases work differently in PowerShell 7?

PowerShell 7 removed a few aliases that clashed with real programs. In Windows PowerShell 5.1, curl and wget run Invoke-WebRequest and sc runs Set-Content; in PowerShell 7, curl and sc run curl.exe and sc.exe.

How many commands does PowerShell have?

It depends on the modules installed on your computer. Run (Get-Command).Count to see your total. This page covers the commands you’ll use most.

Bijay Kumar

Written by Bijay Kumar, a 13-time Microsoft MVP with 18+ years of hands-on experience. Every example on this page was checked against the real cmdlets in PowerShell 7 and Windows PowerShell 5.1. Found a problem? Email bijay@powershellfaqs.com.

About PowerShell FAQs