Enable indexing uncached Exchange folders
Activer l’indexation des dossiers Exchange non mis en cache
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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