Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Count number of mails in exchange with script

Posted on 2007-12-06
8
Medium Priority
?
894 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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
 
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 375 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
To show how to generate a certificate request 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 Servers >> Certificates…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

650 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