Solved

Count number of mails in exchange with script

Posted on 2007-12-06
8
865 Views
Last Modified: 2012-05-05
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
Comment
Question by:pstather
  • 4
  • 3
8 Comments
 
LVL 9

Expert Comment

by:Suhas .
ID: 20418678
go through modules Win32::OLE; and Mail::Outlook in cpan.
0
 

Author Comment

by:pstather
ID: 20418699
thanks for that,

I'll check it out now
0
 
LVL 104

Expert Comment

by:Sembee
ID: 20418853
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
 

Author Comment

by:pstather
ID: 20419292
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 104

Expert Comment

by:Sembee
ID: 20419309
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
 

Author Comment

by:pstather
ID: 20419401
What about if message tracking is enabled
0
 
LVL 104

Accepted Solution

by:
Sembee earned 125 total points
ID: 20419446
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
 

Author Comment

by:pstather
ID: 20581019
Thanks for this but I have sorted it now using vbscript.

The key is to use WMI MessageTrackingEntry
0

Featured Post

Are your end users making ugly email signatures?

Have you left it up to your end users to create their own email signatures? Are they forgetting to add the company logo or using garish font colors? Take control and ensure all users have the same email signature.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
how to add IIS SMTP to handle application/Scanner relays into office 365.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now