Select OCR language from a code page
Sélectionner une langue OCR à partir d’une page de codes
Explanation
This policy setting allows selecting of OCR (Optical Character Recognition) languages that belong to one of the supported code pages. If you enable this policy setting, the selected OCR languages are used in OCR processing during the indexing of TIFF files. The default system language is ignored unless it is among the selected OCR languages. If you disable or do not configure this policy setting, only the default system language is used.
All selected OCR languages must belong to the same code page. If you select languages from more than one code page, the entire OCR language selection is ignored and only the default system language is used.
Re-indexing is not initiated when you enable this policy and selecting OCR languages. This policy setting only applies to the indexing of new files, unless re-indexing is initiated manually.
Ce paramètre de stratégie permet de sélectionner les langues de reconnaissance optique de caractères (OCR) appartenant à l’une des pages de codes prises en charge. Si vous activez ce paramètre de stratégie, le traitement OCR tient compte des langues choisies pendant l’indexation des fichiers TIFF. La langue du système par défaut est ignorée, sauf si elle fait partie des langues OCR sélectionnées. Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le traitement OCR s’effectue uniquement dans la langue du système par défaut.
Toutes les langues OCR que vous sélectionnez doivent appartenir à la même page de codes. Si vous choisissez des langues provenant de plusieurs pages de codes, la totalité de la sélection sera ignorée et la langue du système sera appliquée par défaut.
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
SelectOCRLangs
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | 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.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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/SelectOCRLangsCodePage
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'SelectOCRLangs' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Estonian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Estonian' -Value 1061 -Type DWord
# Latvian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Latvian' -Value 1062 -Type DWord
# Lithuanian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Lithuanian' -Value 1063 -Type DWord
# Albanian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Albanian' -Value 1052 -Type DWord
# Croatian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Croatian' -Value 1050 -Type DWord
# Czech
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Czech' -Value 1029 -Type DWord
# Hungarian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Hungarian' -Value 1038 -Type DWord
# Polish
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Polish' -Value 1045 -Type DWord
# Romanian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Romanian' -Value 1048 -Type DWord
# Serbian Latin
# unchecked: 0
Set-ItemProperty -Path $k -Name 'SerbianLatin' -Value 2074 -Type DWord
# Slovak
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Slovak' -Value 1051 -Type DWord
# Slovenian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Slovenian' -Value 1060 -Type DWord
# Bulgarian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Bulgarian' -Value 1026 -Type DWord
# Belarusian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Byelorussian' -Value 1059 -Type DWord
# Macedonian (F.Y.R.O. Macedonia)
# unchecked: 0
Set-ItemProperty -Path $k -Name 'MacedoniaFYRO' -Value 1071 -Type DWord
# Russian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Russian' -Value 1049 -Type DWord
# Serbian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Serbian' -Value 3098 -Type DWord
# Ukrainian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Ukrainian' -Value 1058 -Type DWord
# Catalan
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Catalan' -Value 1027 -Type DWord
# Danish
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Danish' -Value 1030 -Type DWord
# Dutch
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Dutch' -Value 1043 -Type DWord
# English
# unchecked: 0
Set-ItemProperty -Path $k -Name 'English' -Value 1033 -Type DWord
# Faroese
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Faroese' -Value 1080 -Type DWord
# Finnish
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Finnish' -Value 1035 -Type DWord
# French
# unchecked: 0
Set-ItemProperty -Path $k -Name 'French' -Value 1036 -Type DWord
# German
# unchecked: 0
Set-ItemProperty -Path $k -Name 'German' -Value 1031 -Type DWord
# Icelandic
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Icelandic' -Value 1039 -Type DWord
# Indonesian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Indonesian' -Value 1057 -Type DWord
# Italian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Italian' -Value 1040 -Type DWord
# Malay
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Malaysian' -Value 1086 -Type DWord
# Norwegian
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Norwegian' -Value 1044 -Type DWord
# Portuguese
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Portuguese' -Value 1046 -Type DWord
# Spanish
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Spanish' -Value 1034 -Type DWord
# Swedish
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Swedish' -Value 1053 -Type DWord
# Greek
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Greek' -Value 1032 -Type DWord
# Turkish
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Turkish' -Value 1055 -Type DWord
# Chinese (simplified)
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Chinese (Simplified)' -Value 4100 -Type DWord
# Chinese (traditional)
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Chinese (Traditional)' -Value 5124 -Type DWord
# Japanese
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Japanese' -Value 1041 -Type DWord
# Korean
# unchecked: 0
Set-ItemProperty -Path $k -Name 'Korean' -Value 1042 -Type DWordDisable
# Disable: searchocr/SelectOCRLangsCodePage
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'SelectOCRLangs' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": searchocr/SelectOCRLangsCodePage
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR'
Remove-ItemProperty -Path $k -Name 'SelectOCRLangs' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Estonian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Latvian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Lithuanian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Albanian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Croatian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Czech' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Hungarian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Polish' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Romanian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SerbianLatin' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Slovak' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Slovenian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Bulgarian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Byelorussian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'MacedoniaFYRO' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Russian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Serbian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Ukrainian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Catalan' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Danish' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Dutch' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'English' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Faroese' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Finnish' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'French' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'German' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Icelandic' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Indonesian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Italian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Malaysian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Norwegian' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Portuguese' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Spanish' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Swedish' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Greek' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Turkish' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Chinese (Simplified)' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Chinese (Traditional)' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Japanese' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Korean' -ErrorAction SilentlyContinueOptions (40)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| EstonianEstonienEstonian | Check boxboolean | Estonian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1061Unchecked: REG_DWORD = 0 |
| LatvianLettonLatvian | Check boxboolean | Latvian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1062Unchecked: REG_DWORD = 0 |
| LithuanianLituanienLithuanian | Check boxboolean | Lithuanian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1063Unchecked: REG_DWORD = 0 |
| AlbanianAlbanaisAlbanian | Check boxboolean | Albanian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1052Unchecked: REG_DWORD = 0 |
| CroatianCroateCroatian | Check boxboolean | Croatian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1050Unchecked: REG_DWORD = 0 |
| CzechTchèqueCzech | Check boxboolean | Czech | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1029Unchecked: REG_DWORD = 0 |
| HungarianHongroisHungarian | Check boxboolean | Hungarian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1038Unchecked: REG_DWORD = 0 |
| PolishPolonaisPolish | Check boxboolean | Polish | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1045Unchecked: REG_DWORD = 0 |
| RomanianRoumainRomanian | Check boxboolean | Romanian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1048Unchecked: REG_DWORD = 0 |
| Serbian LatinSerbe (latin)SerbianLatin | Check boxboolean | SerbianLatin | REG_DWORD | Default (UI): false Checked: REG_DWORD = 2074Unchecked: REG_DWORD = 0 |
| SlovakSlovaqueSlovak | Check boxboolean | Slovak | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1051Unchecked: REG_DWORD = 0 |
| SlovenianSlovèneSlovenian | Check boxboolean | Slovenian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1060Unchecked: REG_DWORD = 0 |
| BulgarianBulgareBulgarian | Check boxboolean | Bulgarian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1026Unchecked: REG_DWORD = 0 |
| BelarusianBélarusseByelorussian | Check boxboolean | Byelorussian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1059Unchecked: REG_DWORD = 0 |
| Macedonian (F.Y.R.O. Macedonia)Macédonien (Ex-Rép. yougoslave de Macédoine)MacedoniaFYRO | Check boxboolean | MacedoniaFYRO | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1071Unchecked: REG_DWORD = 0 |
| RussianRusseRussian | Check boxboolean | Russian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1049Unchecked: REG_DWORD = 0 |
| SerbianSerbeSerbian | Check boxboolean | Serbian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 3098Unchecked: REG_DWORD = 0 |
| UkrainianUkrainienUkrainian | Check boxboolean | Ukrainian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1058Unchecked: REG_DWORD = 0 |
| CatalanCatalan | Check boxboolean | Catalan | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1027Unchecked: REG_DWORD = 0 |
| DanishDanoisDanish | Check boxboolean | Danish | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1030Unchecked: REG_DWORD = 0 |
| DutchNéerlandaisDutch | Check boxboolean | Dutch | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1043Unchecked: REG_DWORD = 0 |
| EnglishAnglaisEnglish | Check boxboolean | English | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1033Unchecked: REG_DWORD = 0 |
| FaroeseFéroïenFaroese | Check boxboolean | Faroese | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1080Unchecked: REG_DWORD = 0 |
| FinnishFinnoisFinnish | Check boxboolean | Finnish | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1035Unchecked: REG_DWORD = 0 |
| FrenchFrançaisFrench | Check boxboolean | French | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1036Unchecked: REG_DWORD = 0 |
| GermanAllemandGerman | Check boxboolean | German | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1031Unchecked: REG_DWORD = 0 |
| IcelandicIslandaisIcelandic | Check boxboolean | Icelandic | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1039Unchecked: REG_DWORD = 0 |
| IndonesianIndonésienIndonesian | Check boxboolean | Indonesian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1057Unchecked: REG_DWORD = 0 |
| ItalianItalienItalian | Check boxboolean | Italian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1040Unchecked: REG_DWORD = 0 |
| MalayMalaisMalaysian | Check boxboolean | Malaysian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1086Unchecked: REG_DWORD = 0 |
| NorwegianNorvégienNorwegian | Check boxboolean | Norwegian | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1044Unchecked: REG_DWORD = 0 |
| PortuguesePortugaisPortuguese | Check boxboolean | Portuguese | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1046Unchecked: REG_DWORD = 0 |
| SpanishEspagnolSpanish | Check boxboolean | Spanish | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1034Unchecked: REG_DWORD = 0 |
| SwedishSuédoisSwedish | Check boxboolean | Swedish | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1053Unchecked: REG_DWORD = 0 |
| GreekGrecGreek | Check boxboolean | Greek | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1032Unchecked: REG_DWORD = 0 |
| TurkishTurcTurkish | Check boxboolean | Turkish | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1055Unchecked: REG_DWORD = 0 |
| Chinese (simplified)Chinois (simplifié)ChineseSimplified | Check boxboolean | Chinese (Simplified) | REG_DWORD | Default (UI): false Checked: REG_DWORD = 4100Unchecked: REG_DWORD = 0 |
| Chinese (traditional)Chinois (traditionnel)ChineseTraditional | Check boxboolean | Chinese (Traditional) | REG_DWORD | Default (UI): false Checked: REG_DWORD = 5124Unchecked: REG_DWORD = 0 |
| JapaneseJaponaisJapanese | Check boxboolean | Japanese | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1041Unchecked: REG_DWORD = 0 |
| KoreanCoréenKorean | Check boxboolean | Korean | REG_DWORD | Default (UI): false Checked: REG_DWORD = 1042Unchecked: REG_DWORD = 0 |