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
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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