Configure Storage Sense cadence
Configurer la cadence de détection du stockage
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.
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 DWordDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Run Storage Sense:Exécuter l'Assistant Stockage :StorageSenseGlobalCadence | Drop-down listenum | ConfigStorageSenseGlobalCadence | REG_DWORD | Required · Default choice (UI): #3
|