views:

975

answers:

3

I'm about to start googling but figured I'd start here. We already found a VB script that enumerates SharePoint site collections / sites. It calls stsadm to achieve this and it recursively evaluates each site to get the sub-sites.

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

We're using MOSS 2007.

EDIT: I found a related question on SO but didn't see an answer for the disk space question.

A: 

You can see the total disk / db usage on the site settings page, not sure how to achieve this per site though, I think STSADM.exe -o enumsites -url htt://siteurl sites.txt exports an xml file with size included

Colin
A: 

You can get the site collection's size 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>

Will update if I find a method for sites/subsites.

Mayo
A: 

You can also get this information from Central Admin. Application Management > Site Collection Quota and Locks. At the bottom it gets you the spaces used currently.

Mike Polen