Exchange 2010 - Specific Mailbox Stats daily report

Hi Experts,
I wish to generate a report against a specific mailbox and for the output to be statistical information such as:
Number of incoming emails within a given start/end date/timeframe


Obviously, I am not after exchange jargon, this is to be used by a department team leader on an ongoing basis so needs to simply output information, I need to automate that the department head receives this on a daily basis

Any suggestions on how I can go about this, any handy scripts that someone may have to do this?
Craig PaulsenSenior Systems EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

p_nutsCommented:
You could write a power shell script and schedule it
0
Craig PaulsenSenior Systems EngineerAuthor Commented:
thanks, that' s part I need help with
0
Craig PaulsenSenior Systems EngineerAuthor Commented:
anybody???
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Craig PaulsenSenior Systems EngineerAuthor Commented:
this is what I've come up with

Add-PSSnapin Microsoft.Exchange.Management.Powershell.Admin -erroraction silentlyContinue
get-messagetrackinglog -result unlimited -recipient blblahblah -start (get-date).adddays(-1) | select messageid -unique | measure | export-csv “c:\file.csv” -NoTypeInformation
$file = “c:\file.csv”
Send-MailMessage -SmtpServer 1x.1xx.6x.x4 -To craigpa@xxxxxxx.ba -From StatMail@test.govt.ba -Subject “Mailbox Count - DDS Request” -Body “Daily email count for PDS Request” Mailbox” -attachment $file

I also need to run this as a scheduled task, as business owner wants this daily, to see amount of emails this particular mailbox is getting daily,
if I run the commands manually it outputs, however if I save the above as a .ps1 scripts it doesn't run, what am I doing wrong
0
timgreen7077Exchange EngineerCommented:
Do you mean if you save it as a ps1 script and attempt to run as a scheduled task or the ps1 doesn't run all, scheduled task or not?
0
Craig PaulsenSenior Systems EngineerAuthor Commented:
found my own solution, no help whatsoever on here
0
Craig PaulsenSenior Systems EngineerAuthor Commented:
another forum, free mind you
begs the question why pay this?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
timgreen7077Exchange EngineerCommented:
I attempted the assist you but you didnt answer my question.
0
Craig PaulsenSenior Systems EngineerAuthor Commented:
Hi Tim, you responded by saying create a powershell script and schedule via Task Manager,
which I already know, I specificlly needed the syntax and I responded to that
0
timgreen7077Exchange EngineerCommented:
review the comments I only responded with the following:

"Do you mean if you save it as a ps1 script and attempt to run as a scheduled task or the ps1 doesn't run all, scheduled task or not?"

you never replied to me. good you got it fixed though.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.