pipeline
Get-Process | Where-Object { $_.CPU -gt 10 } | Select-Object Name, CPU
The pipeline passes objects
Where-Object filters
Select-Object projects
No parsing of column positions
$_
$_ is the current object in the pipeline
It is the answer to “which object am I looking at right now”
Use it in filters and projections
Format versus output
Format-Table and Format-List change display
They do not change the objects
Piping formatted output into another command is a common mistake
Do the work first, format last
Export
Get-Process | Export-Csv processes.csv -NoTypeInformation
CSV, JSON, and XML are built in No external tool needed for structured output
Next
Objects in 04 objects
Test this in your lab first
Posted