Stop indexing in the event of limited hard drive space
Arrêter l’indexation en cas d’espace disque limité
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.
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 2147483647Disable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| MB LimitLimite en MoStopIndexingOnLimitedHardDriveSpace_MBLimit | Numeric boxdecimal | PreventIndexingLowDiskSpaceMB | REG_DWORD | Max: 2147483647 |