Open in the explorer

Select OCR language

Sélectionner les langues OCR

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Search › OCR FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rechercher › OCR
Supported on
At least Windows Server 2016 or Windows 10 FR: Au moins Windows Server 2016 ou Windows 10
ADMX file
searchocr.admx
Internal name
searchocr/SelectOCRLangs

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.

French text from Windows 11 26H2

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 String

Disable

# 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 SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Choose one of the following OCR languages:Choisissez l'une des langues OCR suivantes :SelectOcrLanguageDrop-down listenumSelectedOcrLanguageREG_SZ
Required · Default choice (UI): #0
LabelValue
ArabicREG_SZ = ar
Bosnian (Latin)REG_SZ = bs-latn-ba
BulgarianREG_SZ = bg
CroatianREG_SZ = hr
SlovenianREG_SZ = sl
CzechREG_SZ = cs
HungarianREG_SZ = hu
PolishREG_SZ = pl
RussianREG_SZ = ru
DanishREG_SZ = da
DutchREG_SZ = nl
EnglishREG_SZ = en
FinnishREG_SZ = fi
FrenchREG_SZ = fr
GermanREG_SZ = de
ItalianREG_SZ = it
NorwegianREG_SZ = nb
PortugueseREG_SZ = pt
RomanianREG_SZ = ro
Serbian (Cyrillic)REG_SZ = sr-cyrl-rs
Serbian (Latin)REG_SZ = sr-latn-rs
SlovakREG_SZ = sk
SpanishREG_SZ = es
SwedishREG_SZ = sv
GreekREG_SZ = el
TurkishREG_SZ = tr
Chinese (Simplified)REG_SZ = zh-Hans
Chinese (Traditional)REG_SZ = zh-Hant
JapaneseREG_SZ = ja
KoreanREG_SZ = ko

Availability

Windows 10

✓ 22H2✓ 21H2✓ 21H1✓ 20H2— 2004— 1909— 1903✓ 1809✓ 1803— 1709— 1703— 1607✓ 1511changed✓ 1507

Windows Server