Retrieves the message trace for a specific customer tenant ID.
The Get-CIPPMessageTrace function retrieves the message trace for a specific customer tenant ID within a specified number of days. It can also filter the results based on the sender and recipient email addresses.
Specifies the customer tenant ID for which the message trace needs to be retrieved. This parameter is mandatory.
Specifies the number of days within which the message trace needs to be retrieved. This parameter is mandatory.
Specifies the sender email address to filter the message trace results. This parameter is optional.
Specifies the recipient email address to filter the message trace results. This parameter is optional.
PS > Get-CIPPMessageTrace -CustomerTenantID "contoso.onmicrosoft.com" -Days 7
PS > Get-CIPPMessageTrace -CustomerTenantID "contoso.onmicrosoft.com" -Days 30 -Sender "[email protected]"
PS > Get-CIPPMessageTrace -CustomerTenantID "contoso.onmicrosoft.com" -Days 14 -Recipient "[email protected]"