Get-MessageTraceV2 — Basic UsageIT technician command center
Microsoft 365 · Exchange Online

Get-MessageTraceV2 — Basic Usage

Use Get-MessageTraceV2 for a standard administrative task.

Copy-ready commandGet-MessageTraceV2 — Basic Usage
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 Usage

Use Get-MessageTraceV2 for a standard administrative task.

Get-MessageTraceV2 -StartDate (Get-Date).AddDays(-1) -EndDate (Get-Date)

Original command

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.