Solved

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

Posted on 2014-11-21
2
1,427 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
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 discusses moving either the default database or any database to a new volume.

822 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