Solved

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

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

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

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.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
how to add IIS SMTP to handle application/Scanner relays into office 365.

707 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

16 Experts available now in Live!

Get 1:1 Help Now