PowerShell out gridview in SharePoint 2013/2016

This PowerShell SharePoint tutorial, we will discuss how to use out gridview in PowerShell cmdlets in SharePoint 2013/2016. The Out-GridView cmdlet sends the output from a command to a grid view window where the output is displayed in an interactive table.

When I try to get all the service applications associated in a FARM using PowerShell in SharePoint 2013, I am not able to read the output as it is beyond the size of the window.

PowerShell Command to list all the service application details in a FARM:

PowerShell out gridview

PowerShell out gridview in SharePoint

In PowerShell, we have an option to redirect the output to GridView using ” | gridview” as shown below:

Get-SPServiceApplication | Out-GridView 
PowerShell out gridview in SharePoint

Advantages of out gridview in PowerShell

  • When we use GridView it will redirect the output to GridView which is very easy to read through the output
  • You can add the filters on the output data
  • You can sort the data then and there
  • Easily add new criteria on the output data
out gridview in powershell

You may like following SharePoint PowerShell tutorials:

This SharePoint PowerShell, we saw how to use PowerShell out gridview parameter in SharePoint 2013/2016.