Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Out-GridView

Out-GridView - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.

Out-GridView


Short description
Sends output to an interactive table in a separate window.

Syntax
Out-GridView [-InputObject <psobject>] [-Title <string>] [<CommonParameters>]

Description
The Out-GridView cmdlet sends the output from a command to a grid view window where the output is displayed in an i
nteractive table.  This feature requires Microsoft .NET Framework 3.5 with Service Pack 1. 

You can use the following features of the table to examine your data:

-- Hide, Show, and Reorder Columns: To hide, show, or reorder a column, right-click a column header and then click 
"Select Columns."

-- Sort. To sort the data, click a column header. Click again to toggle from ascending to descending order.

-- Quick Filter. Use the "Filter" box at the top of the window to search the text in the table. You can search for 
text in a particular column, search for literals, and search for multiple words. 

-- Criteria Filter. Use the "Add criteria" drop-down menu to create rules to filter the data. This is very useful f
or very large data sets, such as event logs.

-- Copy and paste. To copy rows of data from Out-GridView, press CTRL+C (copy). You can paste the data into any tex
t or spreadsheet program.

For instructions for using these features, type "get-help out-gridview -full" and see "How to Use the Grid View Win
dow Features" in the NOTES section.