When you run the Test-ExchangeSearch cmdlet without parameters or when you run it with the -MailboxDatabase parameter in a Microsoft Exchange Server 2013 on-premises environment, the cmdlet doesn't run successfully. Additionally, you receive an error message that resembles the following:
Note If you run Test-ExchangeSearch cmdlet with other parameters, the cmdlet runs successfully.
The monitoring mailbox could not be found in the Mailbox Database "database_name".
+ CategoryInfo : NotSpecified: (:) [Test-ExchangeSearch], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : [Server=EXCHANGE,RequestId=Request_ID,TimeStamp=date time] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 4ADC2C61,Microsoft.Exchange.Management.Sear
ch.TestSearch
+ PSComputerName : Exchange.contoso.com
+ CategoryInfo : NotSpecified: (:) [Test-ExchangeSearch], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : [Server=EXCHANGE,RequestId=Request_ID,TimeStamp=date time] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 4ADC2C61,Microsoft.Exchange.Management.Sear
ch.TestSearch
+ PSComputerName : Exchange.contoso.com
Note If you run Test-ExchangeSearch cmdlet with other parameters, the cmdlet runs successfully.