Select-Object
SafePick properties/rows
... | Select-Object Name,Status
Projects properties; -First takes top N; -ExpandProperty unwraps raw values. Core shaping tool.
Examples
Get-Process | sort CPU -desc | select -First 5 Name,CPUTop 5 by CPU
Syntax
<cmd> | Select-Object <props> [-First N] [-Unique]
Before you run it
Read only.
Related commands
- Where-ObjectFilter objects
- Sort-ObjectSort objects
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store