AIM

Message Tracking in Office 365

Use the following powershell cmdlets to track a message in Office 365.
This example gets tracking report for messages with the word “Report” in the Subject field sent from one user to another. Then it returns a summary of the message tracking report.
1.Set the credentials.
$LiveCred=Get-Credential

2.Create a new powershell session.
$Session = New-PSSession -ConfigurationName Microsoft.Exchange-ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

3.Import the session.
Import-PSSession $Session

4.Search for Message Tracking Report.
$Track = Search-MessageTrackingReport -Identity “firstname.lastname@company-x.com” -Sender “firstname.lastname@company-y.com” -BypassDelegateChecking -DoNotResolve -subject “Report”

5.Next, get a summary of the message tracking report.
Get-MessageTrackingReport -Identity $Track.MessageTrackingReportID -ReportTemplate Summary

Best Regards

Anders Månsson
Senior Consultant, AddLevel AB

Posted in Addlevel.