[Powershell script]-Get Message sent statistics from a mailbox in office 365

This script provides statistics of email messages sent each day from a mailbox within the specific time frame, default is last one week, you can fetch up to 13 days stats. import the script as function in the PowerShell session and the use as showing below.

Output example:
GetMsgSentStatistics -SenderEmailAddress labadmin@lab365.in -DaysofActivity 10

Name       Count
----       -----
15-04-2020  5015
14-04-2020  3118
13-04-2020  4758
12-04-2020   550
11-04-2020   670
10-04-2020  5741
09-04-2020  6516
08-04-2020  7346
07-04-2020  8103
06-04-2020  3183

Download From GitHub

How to run Examples:

Get-MessagesSentStatistics -SenderEmailAddress user@domain.com -DaysofActivity 5

Use Switch "-GetSentToDomainStats" to includes stats for email sent to domains

Get-MessagesSentStatistics -SenderEmailAddress user@domain.com -DaysofActivity 5 -GetSentToDomainStats

Use Switch "-ShowProgress" will show progress while the script is running.

Get-MessagesSentStatistics -SenderEmailAddress user@domain.com -DaysofActivity 5 -GetSentToDomainStats -ShowProgress

Use Switch "-DeepAnalysis" to include the message sent per minute, also include the top domain by default.

Get-MessagesSentStatistics -SenderEmailAddress user@domain.com -DaysofActivity 5 -DeepAnalysis -ShowProgress

Comments