Inbox stats using VBScript



I'm new to scripting and have been tasked with creating a VBScript that
will return summary information like Total Mailbox Size, and Total
Messages, along with some more detailed information like message
locations (i.e. Inbox, Sent Items, Deleted Items), percentage of
messages Over 1MB, and percentage of messages Older then 1 Year, per
folder, per mailbox. I am running Exchange 2000 on a Windows 2000
server.

I have read a few articles online that contained script samples. One
uses CDO, but stated that it would only return information for the
currently logged on user's mailbox due to security restrictions. The
other uses a MAPI Session to connect to each mailbox. I've decided to
try the MAPI approach using the sample code found in the article. So
far I can create a list of email-enabled user from AD, iterate through
each one, and use a MAPI connection, and get back the Total Mailbox
Size, and Total Messages for each. When I tried to take it a step
further and return a list of folders, I found myself one level to deep.
I could return a list of folders created inside of the Inbox, but what
I need to get at is the Sent and Deleted Items folders which I believe
are one level up. I don't understand the Object hierarchy enough to be
able to get there.

Does anyone have any examples of this? Any reply would be appreciated.

Thanks in advance,
Buzz

.



Relevant Pages

  • RE: Database Size
    ... only I don't have a 5.5 server handy. ... > Total Mailbox 1000 ... > Mailbox size is 20 MB Each ... > but Private information store size is 10.4 GB and when i am using Eseutil ...
    (microsoft.public.exchange.admin)
  • Re: Setting Folder Aging Properties Prob
    ... I have tried scripting this as well. ... and processes all the folders in the mailbox. ... Prev by Date: ...
    (microsoft.public.outlook.program_vba)
  • Re: Do the recovered deleted items count toward to total mailbox size ?
    ... sometimes the displayed mailbox size is out of kilter with the size ... that Outlook reports and the overall size of the store minus free ... If a user has a mail quota then the items beyond the Deleted Items ... >> count toward to the total mailbox size of an user? ...
    (microsoft.public.exchange2000.admin)
  • Re: Database Size
    ... > we are Using Exchange Server 5.5 ... > Total Mailbox 1000 ... > Mailbox size is 20 MB Each ... > but Private information store size is 10.4 GB and when i am using Eseutil ...
    (microsoft.public.exchange.admin)
  • Do the recovered deleted items count toward to users mailbox size ?
    ... to the user's mailbox, but per incident happened, it is in reverse) ... I need to re-check again whether the recovered deleted items ... count toward to the total mailbox size of an user? ... server, it reports 1.58GB ?? ...
    (microsoft.public.exchange2000.information.store)

Loading