Allow indexing of encrypted files
Autoriser l’indexation des fichiers chiffrés
Explanation
This policy setting allows encrypted items to be indexed. If you enable this policy setting, indexing will attempt to decrypt and index the content (access restrictions will still apply). If you disable this policy setting, the search service components (including non-Microsoft components) are expected not to index encrypted items or encrypted stores. This policy setting is not configured by default. If you do not configure this policy setting, the local setting, configured through Control Panel, will be used. By default, the Control Panel setting is set to not index encrypted content.
When this setting is enabled or disabled, the index is rebuilt completely.
Full volume encryption (such as BitLocker Drive Encryption or a non-Microsoft solution) must be used for the location of the index to maintain security for encrypted files.
Ce paramètre de stratégie permet l’indexation des éléments chiffrés. Si ce paramètre de stratégie est activé, l’indexation tente de déchiffrer et d’indexer le contenu (les restrictions d’accès sont toujours appliquées). S’il est désactivé ou s’il n’est pas configuré, les composants du service de recherche (y compris les composants tiers) n’indexent pas les éléments chiffrés et les magasins chiffrés. Ce paramètre de stratégie n’est pas configuré par défaut. Si ce paramètre de stratégie n’est pas configuré, le paramètre local, configuré dans le Panneau de configuration, est utilisé. Par défaut, le paramètre du Panneau de configuration ne permet pas d’indexer le contenu chiffré.
Si ce paramètre est activé ou désactivé, l’index est reconstruit entièrement.
Le chiffrement de volume complet (tel que le chiffrement de lecteur BitLocker ou une solution tierce) doit être utilisé pour l’emplacement de l’index afin de maintenir la sécurité des fichiers chiffrés.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search- Value name
AllowIndexingEncryptedStoresOrItems
| 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/AllowIndexingEncryptedStoresOrItems
$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 'AllowIndexingEncryptedStoresOrItems' -Value 1 -Type DWordDisable
# Disable: Search/AllowIndexingEncryptedStoresOrItems
$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 'AllowIndexingEncryptedStoresOrItems' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Search/AllowIndexingEncryptedStoresOrItems
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'AllowIndexingEncryptedStoresOrItems' -ErrorAction SilentlyContinue