Idera nSoftware Compellent

Out-GridView Dirty Tricks

Out-Gridview is a new cmdlet in PowerShell v.2 which allows you to output objects to a "mini" excel sheet like this:

Get-Process | Out-GridView

However, this only works if .NET Framework 3.51 is installed. While PowerShell requires just .NET 2.0, both Out-GridView and ISE-Editor require 3.51 because of their WPF graphical output.

Out-Gridview will display the same columns you would have seen when you output the objects to the console. You should clone the object first to see all object properties in your gridview:

Get-Process | Select-Object * | Out-Gridview

Twitter This Tip! ReTweet this Tip!


Posted Jan 29 2010, 08:00 AM by ps1

Comments

Episode 101 – James Brundage from the PowerShell Team « PowerScripting Podcast wrote Episode 101 – James Brundage from the PowerShell Team « PowerScripting Podcast
on 02-15-2010 11:54 PM

Pingback from  Episode 101 – James Brundage from the PowerShell Team «  PowerScripting Podcast

Episode 102 – James Brundage from the PowerShell Team « PowerScripting Podcast wrote Episode 102 – James Brundage from the PowerShell Team « PowerScripting Podcast
on 02-16-2010 6:27 AM

Pingback from  Episode 102 – James Brundage from the PowerShell Team «  PowerScripting Podcast

aries wrote re: Out-GridView Dirty Tricks
on 04-15-2010 8:00 PM

Ive jsut downloaded and installed .NET Framework 3.51 and it worked without any errors.

Copyright 2010 PowerShell.com. All rights reserved.