12.2. Extending Object Formatting

PowerShell commands work with objects and emit objects. At some time though, those objects have to be turned into text, so that they can be displayed to the screen or written to a file. This is what we refer to as object formatting. How is it implemented in PowerShell? The shell designers have come up with the concept of object views. There are different types of views, and an object can have many views associated with it. We can explicitly use a specific view type and display objects as table, list, a wide list, or a custom representation by using one of the formatting cmdlets. The cmdlets that display an object or objects using specific view settings are, respectively, Format-Table, Format-List, Format-Wide ...

Get Pro Windows PowerShell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.