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
![Selectively Displaying SharePoint Properties Selectively Displaying SharePoint Properties](https://eu-images.contentstack.com/v3/assets/blt07f68461ccd75245/blt554c14954b8f1c7f/66277a03565e806a9285433c/waterdrops-electricblue-680x340_0_3.jpg?width=1280&auto=webp&quality=95&format=jpg&disable=upscale)
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