Skip to content
Tech Shizz Logo

An Engineers Blog

  • TechShizz
  • blog

Office 365 Mail Traffic Statistics by User

Posted on February 23, 2021 By rich No Comments on Office 365 Mail Traffic Statistics by User

This script connects to Office 365 and retrieves the inbound and outbound mail traffic statistics by recipient for all available dates. This information is then exported to a CSV file which can be opened in Microsoft Excel.

Download

This script connects to Office 365 and retrieves the inbound and outbound mail traffic statistics by recipient for all available dates.  Microsoft do not consistenty store message tracking information and you may only see results for the last few days.  

It collects this information using the Get-MessageTrace cmdlet, which parses the SMTP Message Tracking logs within Office 365.  This information is then combined within the script to create a meaningful output.

More information about this script and how it works can be found on the Cogmotive Office 365 reporting blog.

To use the script:

Open PowerShell and run the script as shown below.  Obviously you need to replace the username and password with your own values.

.Get-DetailedMessageStats.ps1 -Office365Username [email protected] -Office365Password Password123 

Below you can see an example of the output, which is saved in CSV format.  This output file can be opened in Microsoft Excel and manipulated for your own needs.

 

Post navigation

❮ Previous Post: Allow Domain Users to install their own printers
Next Post: Office 365: Configuring Malware Filters ❯

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Subscribe to our newsletter!

Recent Posts

  • How to implement a lightning-fast ransomware playbook
  • How to achieve defence in depth in your business
  • How to implement a SecOps team phishing response plan
  • How to block an Office 365 Sign-in correctly
  • Microsoft finally patched serious Exchange 0-day over a month old!

Recent Comments

    Archives

    • November 2022
    • July 2021
    • March 2021
    • February 2021

    Categories

    • Cyber Security
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Copyright © 2023 .

    Theme: Oceanly News Dark by ScriptsTown