Skip to main content

Command referenceGet-Process

Get-Process command (Windows / PowerShell)

WindowsPowerShellprocessbeginner

What it does

Retrieve local or remote process objects and resource metrics. Guides covering the get-process powershell usually need pipeline-friendly examples, common parameters, and how the cmdlet compares with classic CMD or Linux tools. This page includes syntax, options, and copyable PowerShell examples.

Retrieve local or remote process objects and resource metrics.

Syntax

Get-Process [[-Name] <String[]>] [-ComputerName <String[]>] | Get-Process -Id <Int32[]>

Common options

Flag / optionMeaning
-NameSelect processes by executable name.
-IdSelect processes by ID.
-IncludeUserNameInclude the owning user when permitted.
-FileVersionInfoReturn executable version information.
-ComputerNameQuery supported remote computers in Windows PowerShell.

Practical examples

List processes

Get-Process

Returns all local process objects.

Find Node

Get-Process -Name node -ErrorAction SilentlyContinue

Returns Node processes without an error if absent.

Top memory users

Get-Process | Sort-Object WorkingSet64 -Descending | Select-Object -First 10

Selects processes with the largest working sets.

Linux ↔ Windows equivalent

Closest match: ps (Linux / bash / sh / zsh). Display a snapshot of running processes.

Common mistakes

  • Assuming process names include the `.exe` extension.
  • Reading a property that requires elevation and treating missing values as zero.

FAQ

What does Get-Process do in PowerShell?

Retrieve local or remote process objects and resource metrics.

How can I see examples for Get-Process?

Run `Get-Help Get-Process -Examples`, then adapt an example to the provider and objects you are using.

What is a practical Get-Process example?

Try `Get-Process` — Returns all local process objects.

Does Get-Process return text or objects?

Get-Process normally participates in PowerShell's object pipeline; formatting seen in the console is a view of those objects.

Browse the full Linux and Windows command reference to search more bash, CMD, PowerShell, Conda, and GitHub CLI commands.