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 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.