Skip to content
CareerBridge
← PowerShell: read, inspect and report
GUIDED STARTER LESSON

Make a readable practice report

Sort and select information without changing the system.

Understand the idea

Sort-Object orders objects using a property. Sorting output is different from changing the underlying processes.

A snapshot is a momentary observation. A high CPU value alone does not prove a fault.

Good support notes record what was observed, when it was observed and what remains unknown.

Worked example

CPU is accumulated processor time for a process, not current CPU percentage. This read-only report sorts that value and shows up to five results.

Get-Process | Sort-Object CPU -Descending | Select-Object -First 5 -Property ProcessName, CPU