Exchange Online Mail Tracking

1. Install and import module

Import-Module ExchangeOnlineManagement
Install-Module ExchangeOnlineManagement

2. Connect to service


3. Check

Get-MessageTrace -RecipientAddress -StartDate (Get-Date).Adddays(-30) -EndDate (Get-Date)
Get-MessageTrace -SenderAddress --StartDate (Get-Date).Adddays(-30) -EndDate (Get-Date)

4. Who sent an mail from a shared mailbox:

Search-MailboxAuditLog -Identity "" -ShowDetails | Where {$_.Operation -eq "SendAs"} | Format-Table Operation, OperationResult, LogonUserDisplayName, ItemSubject, LastAccessed –Auto

Leave a Reply

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