liveBook · Manning

Column header

As explained in Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS

A column header is the displayed label identifying a column in tabular output, which may differ from the underlying property name.

In PowerShell tabular output, a column header is the displayed label identifying a column. It may differ from the underlying property name because formatting controls width, alignment, and presentation. section 11.2

Treat headers as presentation labels rather than reliable property names. Use Get-Member to discover the actual properties before filtering or comparing objects. section 12.4

Match the property, not the header

Get-Process displays a column labeled PM(MB), but Get-Process | Get-Member identifies the underlying property as PM. Use the property name in PowerShell commands, not the displayed header. section 12.4

Get-Process | Where-Object -FilterScript {$_.WorkingSet -gt 100MB} 

This filtering command demonstrates using an object property, WorkingSet, rather than a formatted column label. section 12.4

How Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS covers it

How deep it goes
Distinguishes headers from properties and points to formatting definitions, stopping short of detailing the complete formatting schema.
Examples
Uses Get-Process output, the PM(MB) label, Get-Member, and a WorkingSet filtering command.
What it assumes
Assumes basic PowerShell object and pipeline familiarity while reinforcing Get-Member from an interactive command example.
What you can do after
Diagnose mismatched labels by checking actual properties with Get-Member before writing filters or comparisons.
How it connects
Connects column headers with object properties, the formatting system, Get-Member, and Format cmdlets.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS. The section links point to the parts of the book it draws on.