Inbox stats using VBScript
- From: "Buzz" <dgh1000101@xxxxxxxxx>
- Date: 6 Apr 2005 17:46:27 -0700
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
.
- Prev by Date: Acessing folders using WebDAV
- Next by Date: Re: Outlook Web Access alternatives
- Previous by thread: Acessing folders using WebDAV
- Next by thread: define reply address for 2 domain address
- Index(es):
Relevant Pages
|
Loading