How to Get the Exchange Online Inbound Message Report via PowerShell
Question details
Administrator needs the PowerShell command equivalent to the Exchange Online Inbound Message Report.

- Product
- Exchange Online PowerShell
- Device & OS
- not provided
- Scenario
- Automating or generating mail flow and inbound message reports using Exchange Online PowerShell.
- Observed behavior
- Required reporting data is not found in commonly used mail traffic cmdlets, or the expected cmdlet is unavailable in the current module.
Ensure you have the latest Exchange Online PowerShell V3 module installed and are connected to your tenant with the appropriate administrator permissions (such as Security Reader or View-Only Organization Management).
Consult Exchange Online PowerShell Documentation and Support
Since standard Outlook support does not cover advanced PowerShell scripting, reaching out to the dedicated Exchange Online PowerShell team or checking Microsoft Graph API is recommended.
The Inbound Message Report data is often handled by specific reporting cmdlets like Get-MailTrafficReport. However, Microsoft frequently updates reporting endpoints, and legacy cmdlets may be deprecated or moved to the Microsoft Graph API.
Run 'Get-Module -ListAvailable -Name ExchangeOnlineManagement' to ensure you are using the latest version of the Exchange Online PowerShell module.
Connect to Exchange Online and run 'Get-Command Get-MailTrafficReport' to see if the cmdlet is available in your tenant's current session.
If the cmdlet is missing or returns insufficient data, visit the Microsoft Q&A PowerShell forum to ask the Exchange Online PowerShell team for the current supported reporting API.
Review the Microsoft Graph API documentation for Mail Flow reporting, as Microsoft is actively transitioning reporting endpoints to Graph for better performance and security.

Looking for a Lightweight Office Suite? Try WPS Office
While managing Exchange Online requires specialized Microsoft admin tools, your daily document, spreadsheet, and presentation tasks don't have to rely on heavy, expensive software. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office.
- 1. Download the Installer: Visit the official WPS Office website and click the 'Free Download' button.
- 2. Install the Software: Run the lightweight installer file and follow the simple on-screen instructions to complete the setup.
- 3. Open Your Files: Launch WPS Office and open your existing Microsoft Office documents directly without losing any formatting or data.

Frequently Asked Questions
Why is Get-MailTrafficReport missing from my PowerShell session?
This cmdlet may be unavailable if you lack the necessary administrative roles (like View-Only Organization Management), if your PowerShell module is outdated, or if Microsoft has deprecated the cmdlet in favor of newer Microsoft Graph API reporting endpoints.
Can I get the Inbound Message Report directly from the Exchange Admin Center?
Yes, administrators can view this data visually by navigating to the Exchange Admin Center, selecting Reports, and then clicking on Mail Flow followed by Inbound Message Report.
What permissions are required to run Exchange Online reporting cmdlets?
You typically need to be assigned the 'Security Reader', 'Security Administrator', or 'View-Only Organization Management' role in Exchange Online or Microsoft Entra ID to access mail flow reporting data via PowerShell.




