Wednesday, February 13, 2013

SharePoint 2010 PowerShell: Get the size of each Site Collection in a particular Web Application

Quick Tip -- To get the storage usage of each site collection in a particular web application, use the following command in PowerShell:

Get-SPWebApplication http://webapplicationurl | Get-SPSite -Limit all | select url, @{label="Size in MB";Expression={$_.usage.storage/1MB}} | Sort-Object -Descending -Property "Size in MB" | Format-Table –AutoSize

Have a good day!

4 comments:

  1. Thank you so much! It was very helpful.

    ReplyDelete
  2. Great, saved me a ton of time writing it myself. Thanks.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete