Get-SPSite -Limit All -ContentDatabase contentdbname | select url, @{label="Size";Expression={$_.usage.storage}}
2
votes
This can also be achieved by
get-spsite -limit all | select url,contentdatabase
The output gets you all of your content databases and the site collections contained within. The -limit all would help if you have more than 100 site collections.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more