Empêcher la personnalisation des emplacements indexés dans le Panneau de configuration : valeur de Registre PreventModifyingIndexedLocations (HKCU Windows Search)UtilisateurHKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Search

ID de stratégie
PreventModifyingIndexedLocations_2
Étendue
Configuration utilisateur
Pris en charge sur
Microsoft Windows (toutes les versions) avec Windows Search 4.0 ou version ultérieure
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Rechercher

Registre

PreventModifyingIndexedLocations

REG_DWORDUtilisateur
Valeur si activée
1
Valeur si désactivée
0
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Windows Search]

; Options (en utiliser une seule)
; Activé
"PreventModifyingIndexedLocations"=dword:00000001
; Désactivé
"PreventModifyingIndexedLocations"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "PreventModifyingIndexedLocations" /t REG_DWORD /d 1 /f
:: Désactivé
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "PreventModifyingIndexedLocations" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'PreventModifyingIndexedLocations' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'PreventModifyingIndexedLocations' -PropertyType DWord -Value 0 -Force | Out-Null