Select OCR language
Sélectionner les langues OCR
Explanation
This policy setting allows selection of OCR (Optical Character Recognition) language. If you enable this policy setting, the selected OCR language is used in OCR processing during the indexing of TIFF files. If you disable or do not configure this policy setting, the default system language is used.
Re-indexing is not initiated when you enable this policy and select the OCR language. This policy setting only applies to indexing of new files, unless re-indexing is initiated manually.
Ce paramètre de stratégie permet de sélectionner la langue OCR (reconnaissance optique de caractères). Si vous activez ce paramètre de stratégie, le traitement OCR tient compte de la langue choisie pendant l'indexation des fichiers TIFF. Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, la langue du système par défaut est utilisée.
Aucune réindexation n'a lieu lorsque vous activez cette stratégie et sélectionnez des langues OCR. Ce paramètre de stratégie concerne uniquement l'indexation de nouveaux fichiers, sauf si vous lancez une opération de réindexation manuelle.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: searchocr/SelectOCRLangs
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Choose one of the following OCR languages
# Possible options:
# Arabic = ar; Bosnian (Latin) = bs-latn-ba; Bulgarian = bg; Croatian = hr; Slovenian = sl
# Czech = cs; Hungarian = hu; Polish = pl; Russian = ru; Danish = da; Dutch = nl; English = en
# Finnish = fi; French = fr; German = de; Italian = it; Norwegian = nb; Portuguese = pt
# Romanian = ro; Serbian (Cyrillic) = sr-cyrl-rs; Serbian (Latin) = sr-latn-rs; Slovak = sk
# Spanish = es; Swedish = sv; Greek = el; Turkish = tr; Chinese (Simplified) = zh-Hans
# Chinese (Traditional) = zh-Hant; Japanese = ja; Korean = ko
Set-ItemProperty -Path $k -Name 'SelectedOcrLanguage' -Value 'ar' -Type StringDisable
# Disable: searchocr/SelectOCRLangs
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": searchocr/SelectOCRLangs
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR'
Remove-ItemProperty -Path $k -Name 'SelectedOcrLanguage' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Choose one of the following OCR languages:Choisissez l'une des langues OCR suivantes :SelectOcrLanguage | Drop-down listenum | SelectedOcrLanguage | REG_SZ | Required · Default choice (UI): #0
|