Open in the explorer

Stop indexing in the event of limited hard drive space

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

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Search FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rechercher
Supported on
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 FR: 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
ADMX file
Search.admx
Internal name
Search/StopIndexingOnLimitedHardDriveSpace

Explanation

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.

French text from 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.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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

Disable

# Disable: Search/StopIndexingOnLimitedHardDriveSpace
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Search/StopIndexingOnLimitedHardDriveSpace
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'PreventIndexingLowDiskSpaceMB' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
MB LimitLimite en MoStopIndexingOnLimitedHardDriveSpace_MBLimitNumeric boxdecimalPreventIndexingLowDiskSpaceMBREG_DWORD
Max: 2147483647

Availability