en-US windows computer

Select OCR language from a code page

Verified with Windows 11 25H2 — updated on July 10, 2026

Windows 11 25H2

Supported on: At least Windows 7 through Windows 8.1 or Windows Server 2012 R2

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Search\OCR

Description

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.

Registry

HKLM SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR

Value name: SelectOCRLangs

More options available

Options

Estonian
Estonian boolean - default: 0
Latvian
Latvian boolean - default: 0
Lithuanian
Lithuanian boolean - default: 0
Albanian
Albanian boolean - default: 0
Croatian
Croatian boolean - default: 0
Czech
Czech boolean - default: 0
Hungarian
Hungarian boolean - default: 0
Polish
Polish boolean - default: 0
Romanian
Romanian boolean - default: 0
Serbian Latin
SerbianLatin boolean - default: 0
Slovak
Slovak boolean - default: 0
Slovenian
Slovenian boolean - default: 0
Bulgarian
Bulgarian boolean - default: 0
Belarusian
Byelorussian boolean - default: 0
Macedonian (F.Y.R.O. Macedonia)
MacedoniaFYRO boolean - default: 0
Russian
Russian boolean - default: 0
Serbian
Serbian boolean - default: 0
Ukrainian
Ukrainian boolean - default: 0
Catalan
Catalan boolean - default: 0
Danish
Danish boolean - default: 0
Dutch
Dutch boolean - default: 0
English
English boolean - default: 0
Faroese
Faroese boolean - default: 0
Finnish
Finnish boolean - default: 0
French
French boolean - default: 0
German
German boolean - default: 0
Icelandic
Icelandic boolean - default: 0
Indonesian
Indonesian boolean - default: 0
Italian
Italian boolean - default: 0
Malay
Malaysian boolean - default: 0
Norwegian
Norwegian boolean - default: 0
Portuguese
Portuguese boolean - default: 0
Spanish
Spanish boolean - default: 0
Swedish
Swedish boolean - default: 0
Greek
Greek boolean - default: 0
Turkish
Turkish boolean - default: 0
Chinese (simplified)
Chinese (Simplified) boolean - default: 0
Chinese (traditional)
Chinese (Traditional) boolean - default: 0
Japanese
Japanese boolean - default: 0
Korean
Korean boolean - default: 0

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Select OCR language from a code page
; State: Enabled
; Supported on: At least Windows 7 through Windows 8.1 or Windows Server 2012 R2

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR]
"SelectOCRLangs"=dword:00000001
"Estonian"=dword:00000000
"Latvian"=dword:00000000
"Lithuanian"=dword:00000000
"Albanian"=dword:00000000
"Croatian"=dword:00000000
"Czech"=dword:00000000
"Hungarian"=dword:00000000
"Polish"=dword:00000000
"Romanian"=dword:00000000
"SerbianLatin"=dword:00000000
"Slovak"=dword:00000000
"Slovenian"=dword:00000000
"Bulgarian"=dword:00000000
"Byelorussian"=dword:00000000
"MacedoniaFYRO"=dword:00000000
"Russian"=dword:00000000
"Serbian"=dword:00000000
"Ukrainian"=dword:00000000
"Catalan"=dword:00000000
"Danish"=dword:00000000
"Dutch"=dword:00000000
"English"=dword:00000000
"Faroese"=dword:00000000
"Finnish"=dword:00000000
"French"=dword:00000000
"German"=dword:00000000
"Icelandic"=dword:00000000
"Indonesian"=dword:00000000
"Italian"=dword:00000000
"Malaysian"=dword:00000000
"Norwegian"=dword:00000000
"Portuguese"=dword:00000000
"Spanish"=dword:00000000
"Swedish"=dword:00000000
"Greek"=dword:00000000
"Turkish"=dword:00000000
"Chinese (Simplified)"=dword:00000000
"Chinese (Traditional)"=dword:00000000
"Japanese"=dword:00000000
"Korean"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Select OCR language from a code page
# State: Enabled
# Supported on: At least Windows 7 through Windows 8.1 or Windows Server 2012 R2

$path = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'SelectOCRLangs' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'Estonian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Latvian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Lithuanian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Albanian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Croatian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Czech' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Hungarian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Polish' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Romanian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'SerbianLatin' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Slovak' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Slovenian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Bulgarian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Byelorussian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'MacedoniaFYRO' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Russian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Serbian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Ukrainian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Catalan' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Danish' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Dutch' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'English' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Faroese' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Finnish' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'French' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'German' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Icelandic' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Indonesian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Italian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Malaysian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Norwegian' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Portuguese' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Spanish' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Swedish' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Greek' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Turkish' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Chinese (Simplified)' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Chinese (Traditional)' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Japanese' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'Korean' -Value 0 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview