Skip to main content

SYNOPSIS

Retrieves message trace information based on specified criteria.

SYNTAX

DESCRIPTION

This function retrieves message trace information from Exchange Online based on the specified criteria. It supports filtering by sender address, recipient address, start date, end date, connector name, transport rule name, and using connector flag.

EXAMPLES

EXAMPLE 1

Retrieves message trace information for messages sent by “john.doe@example.com” to “jane.doe@example.com” within the last 7 days, using the “OutboundConnector” connector.

EXAMPLE 2

Retrieves message trace information for messages received by “jane.doe@example.com” within the last 30 days, filtered by the “Confidential” transport rule, using a connector.

PARAMETERS

-SenderAddress

Specifies the sender address to filter the message trace. This parameter accepts a string or an array of strings. Wildcards (*) can be used to match multiple sender addresses.

-RecipientAddress

Specifies the recipient address to filter the message trace. This parameter accepts a string or an array of strings. Wildcards (*) can be used to match multiple recipient addresses.

-StartDate

Specifies the start date to filter the message trace. This parameter accepts a DateTime object.

-EndDate

Specifies the end date to filter the message trace. This parameter accepts a DateTime object.

-ByConnectorName

Specifies the connector name to filter the message trace. This parameter accepts a string.

-ByTransportRuleName

Specifies the transport rule name to filter the message trace. This parameter accepts a string.

-UsingConnector

Specifies whether to filter the message trace using a connector. This parameter is a switch parameter.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

This function requires the Exchange Online PowerShell module to be installed and connected to an Exchange Online organization. For some event, it will fail to get messagetracedetail https://ps365.clidsys.com/docs/commands/Get-MessageTraceInfo