Open in the explorer

Always use automatic language detection when indexing content and properties

Toujours utiliser la détection automatique de langage lors de l’indexation de contenu et de propriétés

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Search FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rechercher
Supported on
Microsoft Windows 8 or later FR: Microsoft Windows 8 ou version ultérieure
ADMX file
Search.admx
Internal name
Search/AlwaysUseAutoLangDetection

Explanation

This policy setting determines when Windows uses automatic language detection results, and when it relies on indexing history. If you enable this policy setting, Windows will always use automatic language detection to index (as it did in Windows 7). Using automatic language detection can increase memory usage. We recommend enabling this policy setting only on PCs where documents are stored in many languages. If you disable or do not configure this policy setting, Windows will use automatic language detection only when it can determine the language of a document with high confidence.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine quand Windows utilise les résultats de la détection automatique de langage et exploite l’historique d’indexation. Si vous activez ce paramètre de stratégie, Windows utilise toujours la détection automatique de langage pour l’indexation (comme c’était le cas avec Windows 7). L’utilisation de la détection automatique de langage peut entraîner une utilisation accrue de la mémoire. Nous vous recommandons d’activer ce paramètre de stratégie uniquement sur les PC stockant des documents dans plusieurs langues. Si vous désactivez ou ne configurez pas ce paramètre de stratégie, Windows utilise la détection automatique de langage uniquement lorsqu’il peut déterminer avec certitude la langue d’un document.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
Value name
AlwaysUseAutoLangDetection
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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: Search/AlwaysUseAutoLangDetection
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AlwaysUseAutoLangDetection' -Value 1 -Type DWord

Disable

# Disable: Search/AlwaysUseAutoLangDetection
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AlwaysUseAutoLangDetection' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Search/AlwaysUseAutoLangDetection
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'AlwaysUseAutoLangDetection' -ErrorAction SilentlyContinue

Availability