Chapter 3. Pipelining

Windows PowerShell (WPS) shows its real power through its object-oriented pipeline (that is, the passing of typed data from one commandlet to another). The pipeline in WPS contains structured objects, and the WPS provides a few commandlets for working with these objects, (for example, filtering, sorting, and calculating).

Pipelining Basics

To create a pipeline, you use the vertical line (|), as you would in UNIX shells and the normal Windows console.

The command

Get-Process | Format-List

means that the result of the Get-Process commandlets will be passed on to the commandlet Format-List. The standard output form of Get-Process ...

Get Essential PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.