Commands › Exchange Online

Get-FailedContentIndexDocuments

Exchange Online ExchangeOnlineManagement Get-*

Retrieve a list of documents for a mailbox, mailbox database, or Mailbox server that couldn't be indexed by Exchange Search.

Quick start script

# Get-FailedContentIndexDocuments — 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
Get-FailedContentIndexDocuments -Identity <MailboxIdParameter> -MailboxDatabase <DatabaseIdParameter> -Server <ServerIdParameter> | Format-List

# 3. Export for evidence / drift tracking
Get-FailedContentIndexDocuments | Export-Clixml .\FailedContentIndexDocuments-$(Get-Date -Format yyyyMMdd).xml

Syntax — 3 parameter sets

Mailbox

Get-FailedContentIndexDocuments [-Identity] <MailboxIdParameter>
 [-Archive]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-EndDate <DateTime>]
 [-ErrorCode <Int32>]
 [-FailureMode <FailureMode>]
 [-ResultSize <Unlimited>]
 [-StartDate <DateTime>]
 [-WhatIf]
 [<CommonParameters>]

Database

Get-FailedContentIndexDocuments -MailboxDatabase <DatabaseIdParameter>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-EndDate <DateTime>]
 [-ErrorCode <Int32>]
 [-FailureMode <FailureMode>]
 [-ResultSize <Unlimited>]
 [-StartDate <DateTime>]
 [-WhatIf]
 [<CommonParameters>]

Server

Get-FailedContentIndexDocuments -Server <ServerIdParameter>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-EndDate <DateTime>]
 [-ErrorCode <Int32>]
 [-FailureMode <FailureMode>]
 [-ResultSize <Unlimited>]
 [-StartDate <DateTime>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (12)

ParameterTypeRequiredWhat it controls
-Identity MailboxIdParameter yes The Identity parameter specifies the mailbox that you want to view. You can use any value that uniquely identifies the mailbox. For example:
-MailboxDatabase DatabaseIdParameter yes The MailboxDatabase parameter specifies the database from which to get the mailbox. You can use any value that uniquely identifies the database. For example:
-Server ServerIdParameter yes The Server parameter specifies a Mailbox server. You can use the following values:
-Confirm SwitchParameter This parameter is reserved for internal Microsoft use.
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-Archive SwitchParameter The Archive switch restricts the scope of the cmdlet to the user's archive. You don't need to specify a value with this switch.
-EndDate DateTime The EndDate parameter specifies the end date of the date range.
-ErrorCode Int32 The ErrorCode parameter allows you to retrieve documents that failed indexing with a specific error code. You can use the cmdlet without this parameter to list all failed documents for a mailbox, a mailbox database...
-FailureMode FailureMode The FailureMode parameter specifies the type of error. Use the following values.
-ResultSize Unlimited This parameter is reserved for internal Microsoft use.
-StartDate DateTime The StartDate parameter specifies the start date of the date range.
-WhatIf SwitchParameter This parameter is reserved for internal Microsoft use.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.