Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 895
  • Last Modified:

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
0
pstather
Asked:
pstather
  • 4
  • 3
1 Solution
 
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
 
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
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
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
 
SembeeCommented:
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
 
pstatherAuthor Commented:
Thanks for this but I have sorted it now using vbscript.

The key is to use WMI MessageTrackingEntry
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now