O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required