O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

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

Formatting output with Out-GridView

The Out-GridView cmdlet is different from the other formatting cmdlets explored thus far in this chapter. Out-GridView is an interactive cmdlet—that is, it does not format output for display on the Windows PowerShell console, or for sending to a printer. Instead, Out-GridView provides a control permitting exploration of the pipelined data. It does this by adding the data to a table in a floating window. For example, the following command pipelines the results of the Get-Process cmdlet to the Out-GridView cmdlet (gps is an alias for the Get-Process cmdlet):

gps | Out-GridView

When the Get-Process cmdlet completes, a grid appears containing process information arranged in columns and in rows. Figure 2-1 shows ...

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