Wednesday, June 3, 2020

#94: How to get output in Grid?

Hello Everyone,

Sometimes we need to see output, but we want to do some more manipulation. We tend to think what if the output can be filtered easily. With Out-gridview cmdlet it is very easy to see output in grid format.

HOW TO USE?

Write any command or set of line and at the end pipe to out-gridview.

EXAMPLE

get-process | out-gridview
Add caption




You can enter string in filter to filter out certain lines.
You have option to filter based on certain column. This can be achieved with Add Criteria button.

I hope this was quick and easy.
Happy scripting!!

No comments:

Post a Comment

#112: How to handle xml document in Powershell?

 In PowerShell, you can handle XML data using various cmdlets and methods provided by the .NET Framework. Here's a basic guide on how to...