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: