Search Our Site

images/blog.jpg

Until a few weeks ago I was struggling with exporting and sorting data that I get from PowerShell commands (running against Operations Manager :-)). I could not think of an efficient way to accomplish this. I used the export-csv CmdLet to do an export and after that open the CSV file and sort the data in Excel.

Of course there are many more ways to sort data but I really like the Out-GridView Cmdlet I “discovered” a few weeks ago.
This one is available in PowerShell 2.0. The Out-GridView cmdlet is automatically installed when you install PowerShell 2.0; however, the cmdlet won’t do anything unless you also have .NET Framework 3.0 installed.

outgridview

My life gets easier every day!!

Volg ons op: