Open in the explorer

Configure Storage Sense cadence

Configurer la cadence de détection du stockage

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Storage Sense FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Assistant de stockage
Supported on
At least Windows Server 2016, Windows 10 Version 1903 FR: Windows Server 2016, Windows 10 version 1903 ou versions supérieures
ADMX file
StorageSense.admx
Internal name
StorageSense/SS_ConfigStorageSenseGlobalCadence

Explanation

Storage Sense can automatically clean some of the user’s files to free up disk space.

If the group policy "Allow Storage Sense" is disabled, then this policy does not have any effect.

Enabled:
You must provide the desired Storage Sense cadence. Supported options are: daily, weekly, monthly, and during low free disk space. The default is 0 (during low free disk space).

Disabled or Not Configured:
By default, the Storage Sense cadence is set to “during low free disk space”. Users can configure this setting in Storage settings.

French text from Windows 11 26H2

L'Assistant Stockage peut automatiquement nettoyer certains fichiers de l'utilisateur pour libérer de l'espace sur le disque.

Si la stratégie de groupe « autoriser le stockage » est désactivée, cette stratégie n'a aucun effet.

Activé :
Vous devez fournir la cadence de détection de stockage souhaitée. Les options prises en charge sont les suivantes : quotidienne, hebdomadaire, mensuelle et minimale. La valeur par défaut est 0 (lorsque l'espace disque disponible est faible).

Désactivé ou non configuré :
Par défaut, la cadence de détection du stockage est définie à « pendant un espace disque disponible faible ». Les utilisateurs peuvent configurer ce paramètre dans les paramètres de stockage.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\StorageSense
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: StorageSense/SS_ConfigStorageSenseGlobalCadence
$k = 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Run Storage Sense
# Possible options:
#   Every day = 1
#   Every week = 7
#   Every month = 30
#   During low free disk space = 0
Set-ItemProperty -Path $k -Name 'ConfigStorageSenseGlobalCadence' -Value 0 -Type DWord

Disable

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

Revert to "Not configured"

# Revert to "Not configured": StorageSense/SS_ConfigStorageSenseGlobalCadence
$k = 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense'
Remove-ItemProperty -Path $k -Name 'ConfigStorageSenseGlobalCadence' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Run Storage Sense:Exécuter l'Assistant Stockage :StorageSenseGlobalCadenceDrop-down listenumConfigStorageSenseGlobalCadenceREG_DWORD
Required · Default choice (UI): #3
LabelValue
Every dayREG_DWORD = 1
Every weekREG_DWORD = 7
Every monthREG_DWORD = 30
During low free disk spaceREG_DWORD = 0

Availability

Windows 10

✓ 22H2✓ 21H2✓ 21H1✓ 20H2✓ 2004✓ 1909✓ 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server