sts adm command for MOSS 2007

馋奶兔 提交于 2020-02-05 05:15:08

问题


I'm looking for the stsadm command that will list all site collections and their size on disk. Thanks.


回答1:


This will output the site collection list into a file called sites.xml, which can be used in other stsadm commands, like mergecontentdbs

stsadm -o enumsites -url http://MySharePointSite > C:\sites.xml

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:

stsadm -o enumsubwebs -url http://MySharePointSite

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:

stsadm -o enumallwebs -databasename MyContentDatabaseName

Unfortunately, it doesn't give you the size of the web either.



来源:https://stackoverflow.com/questions/1226117/sts-adm-command-for-moss-2007

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!