Working with the Out-GridView CMDLET (Intermediate)

Here, we would be learning about the different parameters of the Out-GridView CMDLET.

Getting ready

The Out-GridView CMDLET gets the output in a graphical form. It leverages the .NET Framework to construct an output window, so the .NET Framework is mandatorily required to deal with the Out-GridView CMDLET.

How to do it...

Try executing the following lines of code.

  1. The following command statement generates the output window along with all the services that are running, and we can select multiple service instances to stop them from having further pipeline executions:
    PS C :\> Get-Service | Out-GridView –PassThru | Stop-Service
    
  2. The following command creates an output window popup with "Process List" ...

Get Instant Windows PowerShell Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.