Skip navigation
Selectively Displaying SharePoint Properties

Selectively Displaying SharePoint Properties

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."

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish