I’m looking for the stsadm command that will list all site collections and their size on disk. Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will output the site collection list into a file called sites.xml, which can be used in other stsadm commands, like mergecontentdbs
Note that this can take a long time if there are lots of site collections – it takes 2 hours on my SharePoint system.
Edit: Added commands for subwebs:
For the subwebs, you can use the enumsubwebs command, passing it the root url of the site collection to enumerate:
However, this doesn’t give you the size of the web, nor does it output the value for the root web in the site collection, nor does it recurse, so you don’t get the subwebs of the subwebs. Its just a list of top-level subwebs.
You can get a complete list of all the webs in a content database with the new enumallwebs command:
Unfortunately, it doesn’t give you the size of the web either.