IT admins often use PowerShell scripts to retrieve details on Microsoft 365 mailboxes, inbound/outbound mail traffic, and more. Below are some PowerShell scripts used on Microsoft 365 mailboxes.Inbound mail traffic report
This PowerShell cmdlet fetches the details of incoming messages between June 13, 2019 and June 15, 2019. However, it cannot fetch data older than 180 days.Outbound mail traffic report
This PowerShell cmdlet fetches the statistics on outgoing messages on June 12, 2019, and displays the results in a table. Every unique combination of EventType and Action is displayed in a separate row in the table.Spam recipient mail traffic report
This PowerShell cmdlet fetches the mailboxes that received the most spam between June 13, 2019 and June 15, 2019.Mailbox size report
This PowerShell cmdlet fetches the size of the user John's mailbox, the number of messages it contains, and the last time it was accessed.
ManageEngine M365 Manager Plus, the Microsoft 365 reporting, auditing, monitoring, and management tool, is loaded with more than 700 pre-configured reports on Azure AD, Exchange Online, Skype for Business, Yammer, and other Microsoft 365 services.
M365 Manager Plus' mailbox traffic reports provide detailed insights on your organization's Microsoft 365 mailbox traffic. It offers valuable information including the volume of spam entering and leaving the organization's mailbox, the list of users who send and receive the most emails, and the users who receive the most spam and malware.
Mailbox traffic reports can help you detect any anomalies in email activity, and identify if they originated from or were delivered to a particular mailbox.
You can also export all these reports to PDF, HTML, CSV, and XLS formats, and schedule them to be generated and emailed to you at designated intervals.