Windows PowerShell "out-gridview"

One of the new feature areas for PowerShell V2 CTP is support for rich output.  The out-gridview cmdlet allows you to send the output of any PowerShell command into a fully interactive grid window.  This feature is available from standard PowerShell and Graphical PowerShell.  Out-GridView can be very useful if the output of your command […]

One of the new feature areas for PowerShell V2 CTP is support for rich output.  The out-gridview cmdlet allows you to send the output of any PowerShell command into a fully interactive grid window.  This feature is available from standard PowerShell and Graphical PowerShell.  Out-GridView can be very useful if the output of your command is long or you need to perform a deeper analysis on that data. 

Here is an example of how to use the out-gridview to display the running processes.  Out-GridView also supports the following aliases grid and ogv

clip_image002[4]

After issuing the command, a new window will appear that contains a grid that has been populated with the data from the pipeline.  This window is separate from the main PowerShell window.  You can go back to PowerShell and issue different commands or even create new grid windows.  However, if you close PowerShell – then all grid windows will also be closed.

The search feature makes it easy to quickly find a specific piece of data.  Here are a few details on how the search mechanism works:

· Searches across all columns and rows

· Search on a single column with this syntax <columnName>:searchValue  

· Matching is not case-sensitive

· Search will match any part of a value

· If the search text is enclosed in quotes – the search should only find items that have the exact phrase.

· May search on more than 1 word –search should treat it like there is a AND between the words.  In other words – it should find rows that have word a AND word b

· Special characters like punctuation, semi-colons, colons, brackets, less than, greater than, brackets, braces are NOT ignored. 

Full Article

Windows, PowerShell, Features, Knowledgebase, Microsoft