Copy-ready commandGet-MessageTraceV2
Get-MessageTraceV2 -StartDate (Get-Date).AddDays(-1) -EndDate (Get-Date)Requirements and permissions
- Requirements
- ExchangeOnlineManagement module
- Permissions
- Exchange administrator or delegated role
- Last reviewed
- 2026-07-31
Examples
Basic example
Trace recent Exchange Online messages.
Get-MessageTraceV2 -StartDate (Get-Date).AddDays(-1) -EndDate (Get-Date)Common errors
Command not found
Confirm ExchangeOnlineManagement module is installed and available in your current shell.