Quickie: Out-Gridview for Input?
Always Something New to Learn
Most of you probably already know about Out-Gridview
, a great command to output data into a human readable grid. Not great for automation, but sometimes you just want to gather information, or pull a detailed sanity check before fully automating something.
Let’s do a quick example.
Get-Process | Out-Gridview
Pretty nifty, no? Way better than Format-Table
in a lot of use cases. What if it could do more? Well, you are in luck. Check out the -OutputMode
parameter. It’s the real magic!
The Main Event
Now that we know about the -OutputMode
parameter, let’s put it in practice.
Get-Process | Out-GridView -OutputMode Single | Stop-Process
That’s it for the quickie today. Hope you had fun.