Friday, March 15, 2013

Get the site contents size in PowerShell

Love this!
Get the site contents size. Particularly useful in prep for a move.



Get-SPSite | select url, @{label="Size in MB";Expression={$_.usage.storage/1MB}} | Sort-Object -Descending -Property "Size in MB" | ConvertTo-Html "Site Colleections sort by size" | Set-Content sitesize.html