Selectively Displaying SharePoint Properties
Learn how in PowerShell you can use the output from Get-SPSite to display specific properties.
Michael T. Smith
December 13, 2012
1 Min Read
To selectively display the properties that the Get-Member cmdlet returns, pipe the output of Get-SPSite to Select:
Get-SPSite http://yourserver/sites/yoursite | Select Url, Owner
Some properties are actually objects themselves (rather than a simple property) and have their own properties. For example, you might try using this cmdlet to get the quota size:
Get-SPSite http://yourserver/sites/yoursite | Select Url, Owner, Quota.StorageMaximumLevel
This cmdlet will display an error message. To get the quota, you will need to enter the following:
Get-SPSite http://yourserver/sites/yoursite | Select Url, Owner, {$_.Quota.StorageMaximumLevel}
Return to the main article, "Exploring and Inventorying SharePoint Using PowerShell."
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like