Ouvrir dans l'explorateur

Arrêter l’indexation en cas d’espace disque limité

Stop indexing in the event of limited hard drive space

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/StopIndexingOnLimitedHardDriveSpace

Explication

Texte français issu de Windows 11 26H2

L’activation de cette stratégie empêche la poursuite de l’indexation une fois qu’une valeur inférieure à la quantité spécifiée d’espace disque est disponible sur le même lecteur que l’emplacement d’index. Sélectionnez une valeur entre 0 et 2147483647 Mo.

Activez cette stratégie si les ordinateurs dans votre environnement disposent d’un espace disque extrêmement limité.

Si cette stratégie est désactivée ou non configurée, Windows Search gère automatiquement votre taille d’index.

Enabling this policy prevents indexing from continuing after less than the specified amount of hard drive space is left on the same drive as the index location. Select between 0 and 2147483647 MB.

Enable this policy if computers in your environment have extremely limited hard drive space.

When this policy is disabled or not configured, Windows Desktop Search automatically manages your index size.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

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/StopIndexingOnLimitedHardDriveSpace
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Limite en Mo
Set-ItemProperty -Path $k -Name 'PreventIndexingLowDiskSpaceMB' -Value 0 -Type DWord  # maximum 2147483647

Désactiver

# Désactiver : Search/StopIndexingOnLimitedHardDriveSpace
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

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

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Limite en MoMB LimitStopIndexingOnLimitedHardDriveSpace_MBLimitZone numériquedecimalPreventIndexingLowDiskSpaceMBREG_DWORD
Max : 2147483647

Disponibilité