Formatting Results
Results retrieved from PowerShell cmdlets are usually displayed in a tabular form but can be further customized by adding the format command. Typical format commands are Format-List, Format-Table, and Format-Wide.
Get-SPSite | Select RootWeb, Url, Owner | Format-Table
The preceding command will list all the site collections and display results in table format. (We selected RootWeb, Url, and Owner properties of site collection to be displayed in the table.)
In addition to formatting results, you can choose a different output destination than a default one (shell screen). One of the useful output destinations is GridView:
Get-SPSolution | Select * | Out-GridView
The preceding command displays all installed SharePoint solutions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access