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."
0 comments
Hide comments