Ouvrir dans l'explorateur

Empêcher la personnalisation des emplacements indexés dans le Panneau de configuration

Prevent customization of indexed locations in Control Panel

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rechercher EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Search
Pris en charge sur
Microsoft Windows XP, Windows Server 2003 avec Windows Search version 3.01 ou toute version de Microsoft Windows avec Windows Search 4.0 ou ultérieure EN : Microsoft Windows XP, Windows Server 2003 with Windows Search version 3.01, or any version of Microsoft Windows with Windows Search 4.0 or later
Fichier ADMX
Search.admx
Nom interne
Search/PreventModifyingIndexedLocations_1

Explication

Texte français issu de Windows 11 26H2

Si ce paramètre est activé, les options de recherche et d’indexation du Panneau de configuration n’autorisent pas l’ouverture de la boîte de dialogue Modification des emplacements. Dans le cas contraire, celle-ci peut être ouverte. Ce paramètre est désactivé par défaut.

If enabled, Search and Indexing Options in Control Panel does not allow opening the Modify Locations dialog. Otherwise it can be opened. Disabled by default.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
Nom de la valeur
PreventModifyingIndexedLocations
ÉtatValeur é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/PreventModifyingIndexedLocations_1
$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 'PreventModifyingIndexedLocations' -Value 1 -Type DWord

Désactiver

# Désactiver : Search/PreventModifyingIndexedLocations_1
$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 'PreventModifyingIndexedLocations' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : Search/PreventModifyingIndexedLocations_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'PreventModifyingIndexedLocations' -ErrorAction SilentlyContinue

Disponibilité