Mailbox sent /receive report for 1 month

Brass Contributor

We are looking to generate email sent /received emails count report for single mailbox in a month period. Can someone share script to generate report and email the report?

 

This is shared mailbox in Office365 and would like to get report every month.

1 Reply
For regular user mailboxes, you can get this data from the Email activity report: https://admin.microsoft.com/Adminportal/Home?#/reportsUsage/EmailActivity
For shared/room/etc mailboxes, you will have to build your own via PowerShell and date exposed via the Get-MessageTrace or Get-MailDetailATPReport cmdlets. There are ready to use samples available online, look them up.