Skip to content

Instantly share code, notes, and snippets.

@wictorwilen
Created February 4, 2015 11:18
Show Gist options
  • Save wictorwilen/c8ae79c0576c2d4c4852 to your computer and use it in GitHub Desktop.
Save wictorwilen/c8ae79c0576c2d4c4852 to your computer and use it in GitHub Desktop.
SharePoint: Site Collection size report
asnp *sh*
get-spsite -limit all| select url, @{label="Size in MB";Expression={$_.usage.storage/1MB}}, @{label="Content Database"; Expression={$_.ContentDatabase.Name}}, @{label="Quota Max"; expression={$_.Quota.StorageMaximumLevel/1MB}}, @{label="Created"; expression={$_.RootWeb.Created}} | Sort-Object -Descending -Property "Size in MB" | ConvertTo-Csv | Set-Content c:\temp\scsize.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment