PowerShell: Display almost anything in a graphical GridView

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

Microsoft Technet Magazine October 2009

Microsoft TechNet Magazine October 2009


Windows 7: The 10 Things to Do First for Windows 7

Getting ready for Windows 7 may seem like a Herculean job—but there are plenty of ways to maximize the OS’s new features while minimizing disruptions in your organization. This offer spells out 10 steps that can help streamline your efforts and smooth the transition. Bill Boswell


Windows 7: Groovy Security in Windows 7

Security enhancements in Windows 7 mean the OS is not only more securable, it’s more usable as well. Learn how the new features make life easier and more secure for both admins and users. Steve Riley



Windows 7: What’s New in Group Policy for Windows 7 and Windows Server 2008 R2

Explore the new and updated Group Policy features in Windows 7 and Windows Server 2008 R2. System administrators will find plenty of goodies, from new Windows PowerShell functionality to updated power options, task scheduling and software restriction policies. Jeremy Moskowitz

Continue reading