Sizing SharePoint sites / site collections

I'm going to start a google search, but decided that I will start here. We have already found a VB script that lists SharePoint site collections / sites. It calls stsadm to achieve this, and it recursively evaluates each site to get sub-sites.

I would like to know if we can modify this script to get the size (in bytes) of each site / site collection.

We are using MOSS 2007.

EDIT : I found a related question in SO , but could not find an answer to a question about disk storage.

+5
source share
4 answers

You can get the size of the site collection in MB.

stsadm -o enumsites -url http://url

<Sites Count="1">
  <Site 
    Url="http://url" 
    Owner="A\user" 
    SecondaryOwner="A\user2" 
    ContentDatabase="WSS_Content_DB"
    StorageUsedMB="13756" 
    StorageWarningMB="0"
    StorageMaxMB="0" />
</Sites>

, /.

+5

. > . , .

+1

You can see the general use of the / db disk on the site settings page, you don’t know how to achieve this on one site, but I think that STSADM.exe -o enumsites -url htt: // siteurl sites.txt exports an XML file with the included size

0
source

Fix syntax for exporting http://example.com to c: \ sites.txt

stsadm - o enumsites -url "http://example.com" > c:\sites.txt
0
source

All Articles