Prevent indexing public folders
Empêcher l’indexation des dossiers publics
Explanation
Enable this policy to prevent indexing public folders in Microsoft Office Outlook. When this policy is disabled or not configured, the user has the option to index cached public folders in Outlook. Public folders are only indexed when using Outlook 2003 or later. The user must be running in cached mode and the Download Public Folder Favorites option must be turned on.
Activez ce paramètre de stratégie pour empêcher l’indexation des dossiers publics dans Microsoft Office Outlook. Si cette stratégie est désactivée ou n’est pas configurée, l’utilisateur a la possibilité d’indexer les dossiers publics mis en cache dans Outlook. Les dossiers publics ne sont indexés qu’avec Outlook version 2003 ou ultérieure. L’utilisateur doit se servir du mode de mise en cache ; en outre, l’option Télécharger le dossier public Favoris doit également être activée.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search- Value name
PreventIndexingPublicFolders
| 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/PreventIndexingPublicFolders
$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 'PreventIndexingPublicFolders' -Value 1 -Type DWordDisable
# Disable: Search/PreventIndexingPublicFolders
$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 'PreventIndexingPublicFolders' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Search/PreventIndexingPublicFolders
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'PreventIndexingPublicFolders' -ErrorAction SilentlyContinue