Commands › Exchange Online
Test-ExchangeSearch
Test that Exchange Search is currently enabled and is indexing new email messages in a timely manner.
Quick start script
# Test-ExchangeSearch — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Run and inspect
Test-ExchangeSearch | Format-List
# 3. Export for evidence / drift tracking
Test-ExchangeSearch | Export-Clixml .\ExchangeSearch-$(Get-Date -Format yyyyMMdd).xml
Syntax — 3 parameter sets
Identity
Test-ExchangeSearch [[-Identity] <MailboxIdParameter>]
[-Archive]
[-Confirm]
[-DomainController <Fqdn>]
[-IndexingTimeoutInSeconds <Int32>]
[-MonitoringContext]
[-WhatIf]
[<CommonParameters>]
Database
Test-ExchangeSearch [-MailboxDatabase <DatabaseIdParameter>]
[-Confirm]
[-DomainController <Fqdn>]
[-IndexingTimeoutInSeconds <Int32>]
[-MonitoringContext]
[-WhatIf]
[<CommonParameters>]
Server
Test-ExchangeSearch [-Server <ServerIdParameter>]
[-Confirm]
[-DomainController <Fqdn>]
[-IndexingTimeoutInSeconds <Int32>]
[-MonitoringContext]
[-WhatIf]
[<CommonParameters>]
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.