Commands › SharePoint Online

Start-SPOSiteOpticalCharacterRecognitionBackfill

SharePoint Online Microsoft.Online.SharePoint.PowerShell Start-*

> [!important] > Optical Character Recognition (OCR) is a pay-as-you-go feature. Running this cmdlet will incur cost for your organization. Initiates a job to trigger the OCR process for all files for the selected site.

Quick start script

# Start-SPOSiteOpticalCharacterRecognitionBackfill — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Start-SPOSiteOpticalCharacterRecognitionBackfill -Site <SpoSitePipeBind> | Format-List

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

Syntax

Start-SPOSiteOpticalCharacterRecognitionBackfill -Site <SpoSitePipeBind> [-WhatIf] [-Confirm]
 [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Site SpoSitePipeBind yes Specifies the site where OCR process should be enabled on.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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