I am trying to determine the size of mailboxes in Exch. 5.5, SP4 using a
CDO script with the following lines:

Mailbox_size = &HE08001E 'Code for mailbox size in bytes
UserSize =
Round((objUserSession.Infostores.Item(intCounter).Fields(Mailbox_Size)) /
1024 / 1024)

This returns the mailbox size in MB, as long as the mailbox is less than 1
GB.  If the mailbox is over 1 GB, then the value of UserSize is a negative
number.  (i.e. a 1.5 GB mailbox would return -2560 MB).  Interestingly
enough, this negative number subtracted from 4096 gives the correct size
for the mailbox.  4096 also happens to be the largest size that ExchAdmin
will report...anything over that returns 0 in mailbox resources.

Are there any suggestions on how to get CDO to properly report mailbox
size on mailboxes over 1 GB (we even have one user with 1 mailbox over 7
GB!)?

Thank you in advance,

--Todd


_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

Reply via email to