Solved

Exchange Online (Office 365) Incoming/Outgoing emails count by day

Posted on 2014-11-21
2
1,579 Views
Last Modified: 2014-11-23
Hi Experts,
I'd like to get a daily count of incoming and outgoing emails for a single Office 365 account (e.g. support@myOffice365Domain.com). I'd like to get these stats since the creation date of the account. I found a script here but it returns all users in my Office 365 environment and for only a few days in the past. How should I modify this script, or create a script from scratch to accomplish what I need?
Much appreciated
0
Comment
Question by:timberadmin
2 Comments
 
LVL 16

Assisted Solution

by:Rajitha Chimmani
Rajitha Chimmani earned 250 total points
ID: 40458596
I dont have an idea how we do in Office365 but reading the script you just need to modify the below line to include the user.

Change $Recipients = Get-Recipient -ResultSize Unlimited | select PrimarySMTPAddress

To
$Recipients = Get-Recipient "username" | Select Primarysmtpaddress

As per the script, it goes through all available logs to give the count. Remember: The number of days depends on how long your logs are retained.
0
 
LVL 40

Accepted Solution

by:
Vasil Michev (MVP) earned 250 total points
ID: 40459289
In the case of Exchange Online, logs are kept for 7 days. Anything beyond that needs to be 'manually' requested, up to 3 months back. The easiest way is to go to the EAC -> Mail flow -> Message trace and run the reports from there, then wait for them to be completed.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2016 CU5 upgrade stuck 9 72
Exchange management shell 5 37
query all mailbox rules 5 30
Apple iCloud Accepting Meeting Reqeust causes issues 7 18
Adoption of Microsoft’s Enterprise Mobility and Security solution and Office 365 will re-order the File Sync and Share market Microsoft has stated that its Enterprise Mobility + Security (EMS) is the fastest growing product in the history of the …
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

749 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