JAEN

PowerShell

Get-Process

SafeProcesses in PS

Get-Process | Sort CPU -Desc

Gets processes as objects; sort by CPU/memory to find heavy ones.

Examples

  • Get-Process | Sort CPU -Desc | Select -First 5Top 5 by CPU

Syntax

Get-Process [name] | Sort-Object CPU -Descending

Before you run it

Read-only.

Used when you see

PC is slow
1
Find the heavy processCheck top CPU/memory
See the whole flow →
CPU usage is pegged
1
Identify the process consuming CPUSort by CPU and look at the top five.
See the whole flow →
Suspected memory leak
2
Find the top memory consumers
See the whole flow →
OneDrive sync is stuck
1
Check (and restart) the OneDrive process
See the whole flow →

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store