Open in the explorer

Enable indexing uncached Exchange folders

Activer l’indexation des dossiers Exchange non mis en cache

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 Vista, or any version of Windows with Windows Search 3.01 or later FR: Microsoft Windows Vista ou une version de Windows avec Windows Search 3.01 ou ultérieure
ADMX file
Search.admx
Internal name
Search/PreventIndexingUncachedExchangeFolders

Explanation

Enabling this policy allows indexing of mail items on a Microsoft Exchange server when Microsoft Outlook is not running in cached mode. The default behavior for search is to not index uncached Exchange folders. Disabling this policy will block any indexing of uncached Exchange folders. Delegate mailboxes are managed separately from online mailboxes. The "Enable Indexing of Uncached Exchange Folders" has no effect on delegate mailboxes. To stop indexing of online and delegate mailboxes you must disable both policies.

French text from Windows 11 26H2

L’activation de cette stratégie permet l’indexation des éléments de messagerie sur un serveur Microsoft Exchange lorsque Microsoft Outlook n’est pas exécuté en mode mis en cache. Le comportement par défaut de la recherche consiste à ne pas indexer les dossiers Exchange non mis en cache. La désactivation de cette stratégie bloque toute indexation des dossiers Exchange non mis en cache. Les boîtes aux lettres déléguées sont gérées séparément des boîtes aux lettres en ligne. Le paramètre “Activer l’indexation des dossiers Exchange non mis en cache” n’a aucun effet sur les boîtes aux lettres déléguées. Pour arrêter l’indexation des boîtes aux lettres en ligne et déléguées, vous devez désactiver les deux stratégies.

Registry

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

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/PreventIndexingUncachedExchangeFolders
$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 'PreventIndexingUncachedExchangeFolders' -Value 0 -Type DWord

Disable

# Disable: Search/PreventIndexingUncachedExchangeFolders
$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 'PreventIndexingUncachedExchangeFolders' -Value 1 -Type DWord

Revert to "Not configured"

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

Availability