Using the script:

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

I always get zero size on sites/subsites collections. What I need actually is to get size on every site/subsite on our internal intranet site. Any other scripts that I have found shows nothing or the same zero size on all sites. For intranet used Sharepoint Foundation 2010.

Thanks in advance for your time and support.

  • What is the output of Get-SPSite | % {Write-Host $_.Url $_.Usage.Storage} ? – Aziz Kabyshev Feb 18 '16 at 16:51
  • Hi @AzizKabyshev, the output what I get is only address of the site without any size mentioned:link. – Tolea Feb 18 '16 at 20:43
  • Ok, thanks. Is the account you run powershell under included in Farm Admins group in CA? Also - what does Get-SPSiteAdministration | ft url,diskused show? – Aziz Kabyshev Feb 19 '16 at 4:53
  • Right Aziz, my account is included in Farm Admins in CA, and using the script mentioned above also get only the site address and on DiskUsed, which it is supposed to show something, it shows nothing... – Tolea Feb 19 '16 at 8:24
  • Can you try with Start-SPAssignment -Global added before and Stop-SPAssignment -Global after that line? – Aziz Kabyshev Feb 19 '16 at 8:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.