CmdID / PowerShell / Cmdlets / Test
Test-Mailflow
Use the Test-Mailflow cmdlet to diagnose whether mail can be successfully sent from and delivered to the system mailbox on a Mailbox server. Exchange PowerShell reference
From the Exchange PowerShell reference 16 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the source Mailbox server name from which a test message is sent.-AutoDiscoverTargetMailboxServerThe AutoDiscoverTargetMailboxServer switch specifies whether to automatically populate a list of target Mailbox servers to which to send a test message.-CrossPremisesThe CrossPremises parameter specifies whether the mail flow test is conducted in cross-premises mode.-TargetDatabaseThe TargetDatabase parameter specifies the mailbox database to which test messages are sent.-TargetEmailAddressThe TargetEmailAddress parameter specifies the SMTP address of the mailbox to which test messages are sent.-TargetMailboxServerThe TargetMailboxServer parameter specifies one or more Mailbox servers in the local Exchange organization to send test messages to.-ActiveDirectoryTimeoutThe ActiveDirectoryTimeout parameter specifies the number of seconds that elapse before the task provides an informational message about the delay.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-CrossPremisesExpirationTimeoutThe CrossPremisesExpirationTimeout parameter is used when this cmdlet is run by Microsoft System Center Operations Manager 2007 agents for asynchronous monitoring.-CrossPremisesPendingErrorCountThe CrossPremisesPendingErrorCount parameter is used when this cmdlet is run by System Center Operations Manager 2007 agents for asynchronous monitoring.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-ErrorLatencyThe ErrorLatency parameter specifies how long to wait for a test message to be delivered before an error event is logged in Microsoft System Center Operations Manager 2007.-ExecutionTimeoutThe ExecutionTimeout parameter specifies the maximum time that this task can run before the test is determined to be a failure.-MonitoringContextThe MonitoringContext parameter specifies whether to include the associated monitoring events and performance counters in the results.-TargetEmailAddressDisplayNameThe TargetEmailAddressDisplayName parameter specifies a custom display name that's used on events and reports in Microsoft System Center Operations Manager 2007 when the TargetEmailAddress parameter…-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.