Empêcher l’indexation de Microsoft Office Outlook
Prevent indexing Microsoft Office Outlook
Explication
Activez cette stratégie pour empêcher l’indexation des éléments Microsoft Outlook. Par défaut, les éléments Outlook sont indexés automatiquement. Si cette stratégie est activée, les éléments Outlook de l’utilisateur ne sont pas ajoutés à l’index ; par ailleurs, l’utilisateur ne les voit pas dans les résultats de la recherche.
Enable this policy to prevent indexing of any Microsoft Outlook items. The default is to automatically index Outlook items. If this policy is enabled then the user's Outlook items will not be added to the index and the user will not see them in search results.
Registre
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search- Nom de la valeur
PreventIndexingOutlook
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : Search/PreventIndexingOutlook
$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 'PreventIndexingOutlook' -Value 1 -Type DWordDésactiver
# Désactiver : Search/PreventIndexingOutlook
$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 'PreventIndexingOutlook' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : Search/PreventIndexingOutlook
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'PreventIndexingOutlook' -ErrorAction SilentlyContinue