Count number of mails in exchange with script

Hello,
Does anyone know of a way to check number of mails recieved on a certain day by using a script.

Preferrably either perl or vbscript.
Thanks in advance
pstatherAsked:
Who is Participating?
 
SembeeConnect With a Mentor Commented:
If message tracking is enabled and covers the date you are interested in, then you can run something against those logs.

The message tracking format has never been released, but it has been reverse engineered.
This is one popular script:
http://www.outlookexchange.com/articles/glenscales/mtrackrs.asp

This one gets them in to XML
http://theessentialexchange.com/blogs/michael/archive/2007/11/13/more-exchange-message-tracking.aspx

And Promodag have something that will put the logs in Access.
http://www.promodag.com/products/storelog/description.aspx

Simon.
0
 
Suhas .QA ManagerCommented:
go through modules Win32::OLE; and Mail::Outlook in cpan.
0
 
pstatherAuthor Commented:
thanks for that,

I'll check it out now
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
SembeeCommented:
Unless you have message tracking enabled that information is not stored by Exchange. You can look in the mailboxes, but that will not give you an accurate reading.

Simon.
0
 
pstatherAuthor Commented:
That will give you a reading but that will tell you al of the mails in the box.  I want the number of mails recieved after a certain date
0
 
SembeeCommented:
As I wrote - that information isn't stored by Exchange unless you have already enabled message tracking. If message tracking is not enabled then that information is not available to you.

Simon.
0
 
pstatherAuthor Commented:
What about if message tracking is enabled
0
 
pstatherAuthor Commented:
Thanks for this but I have sorted it now using vbscript.

The key is to use WMI MessageTrackingEntry
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.