Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2016, Windows 10 Version 1903
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\StorageSense |
|---|
| Value name | AllowStorageSenseGlobal |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
Storage Sense can automatically clean some of the user’s files to free up disk space. By default, Storage Sense is automatically turned on when the machine runs into low disk space and is set to run whenever the machine runs into storage pressure. This cadence can be changed in Storage settings or set with the "Configure Storage Sense cadence" group policy.
Enabled:
Storage Sense is turned on for the machine, with the default cadence as ‘during low free disk space’. Users cannot disable Storage Sense, but they can adjust the cadence (unless you also configure the "Configure Storage Sense cadence" group policy).
Disabled:
Storage Sense is turned off the machine. Users cannot enable Storage Sense.
Not Configured:
By default, Storage Sense is turned off until the user runs into low disk space or the user enables it manually. Users can configure this setting in Storage settings.
Group Policy path: Computer Configuration > Administrative Templates > System > Storage Sense > Allow Storage Sense
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'AllowStorageSenseGlobal' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
File system and storageADMX: StorageSense.admx · policy name SS_AllowStorageSenseGlobal
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2016, Windows 10 Version 1903
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\StorageSense |
|---|
| Value name | AllowStorageSenseTemporaryFilesCleanup |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
When Storage Sense runs, it can delete the user’s temporary files that are not in use.
If the group policy "Allow Storage Sense" is disabled, then this policy does not have any effect.
Enabled:
Storage Sense will delete the user’s temporary files that are not in use. Users cannot disable this setting in Storage settings.
Disabled:
Storage Sense will not delete the user’s temporary files. Users cannot enable this setting in Storage settings.
Not Configured:
By default, Storage Sense will delete the user’s temporary files. Users can configure this setting in Storage settings.
Group Policy path: Computer Configuration > Administrative Templates > System > Storage Sense > Allow Storage Sense Temporary Files cleanup
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'AllowStorageSenseTemporaryFilesCleanup' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
File system and storageADMX: StorageSense.admx · policy name SS_AllowStorageSenseTemporaryFilesCleanup
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2016, Windows 10 Version 1903
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\StorageSense |
|---|
| Option | Value | Type | Allowed values |
|---|
| Number of days since a cloud-backed file has been opened before Storage Sense will dehydrate it (0 is never dehydrating files): | ConfigStorageSenseCloudContentDehydrationThreshold | REG_DWORD | Number 0 to 365 |
What it does (vendor explanation)
When Storage Sense runs, it can dehydrate cloud-backed content that hasn’t been opened in a certain amount of days.
If the group policy "Allow Storage Sense" is disabled, then this policy does not have any effect.
Enabled:
You must provide the minimum number of days a cloud-backed file can remain unopened before Storage Sense dehydrates it from the sync root. Supported values are: 0 - 365.
If you set this value to zero, Storage Sense will not dehydrate any cloud-backed content. The default value is 0, or never dehydrating cloud-backed content.
Disabled or Not Configured:
By default, Storage Sense will not dehydrate any cloud-backed content. Users can configure this setting in Storage settings.
Group Policy path: Computer Configuration > Administrative Templates > System > Storage Sense > Configure Storage Sense Cloud Content dehydration threshold
PowerShell equivalent (generated from the template)
# Number of days since a cloud-backed file has been opened before Storage Sense will dehydrate it (0 is never dehydrating files):
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'ConfigStorageSenseCloudContentDehydrationThreshold' -Value <value> -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
File system and storageADMX: StorageSense.admx · policy name SS_ConfigStorageSenseCloudContentDehydrationThreshold
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2016, Windows 10 Version 1903
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\StorageSense |
|---|
| Option | Value | Type | Allowed values |
|---|
| Minimum age (in days) of a files in the Recycle Bin folder before Storage sense will delete it (0 is never deleting files): | ConfigStorageSenseRecycleBinCleanupThreshold | REG_DWORD | Number 0 to 365 |
What it does (vendor explanation)
When Storage Sense runs, it can delete files in the user’s Recycle Bin if they have been there for over a certain amount of days.
If the group policy "Allow Storage Sense" is disabled, then this policy does not have any effect.
Enabled:
You must provide the minimum age threshold (in days) of a file in the Recycle Bin before Storage Sense will delete it. Supported values are: 0 - 365.
If you set this value to zero, Storage Sense will not delete files in the user’s Recycle Bin. The default is 30 days.
Disabled or Not Configured:
By default, Storage Sense will delete files in the user’s Recycle Bin that have been there for over 30 days. Users can configure this setting in Storage settings.
Group Policy path: Computer Configuration > Administrative Templates > System > Storage Sense > Configure Storage Sense Recycle Bin cleanup threshold
PowerShell equivalent (generated from the template)
# Minimum age (in days) of a files in the Recycle Bin folder before Storage sense will delete it (0 is never deleting files):
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'ConfigStorageSenseRecycleBinCleanupThreshold' -Value <value> -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
File system and storageADMX: StorageSense.admx · policy name SS_ConfigStorageSenseRecycleBinCleanupThreshold
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2016, Windows 10 Version 1903
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\StorageSense |
|---|
| Option | Value | Type | Allowed values |
|---|
| Run Storage Sense: | ConfigStorageSenseGlobalCadence | | 1 (REG_DWORD) = Every day 7 (REG_DWORD) = Every week 30 (REG_DWORD) = Every month 0 (REG_DWORD) = During low free disk space |
What it does (vendor 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.
Group Policy path: Computer Configuration > Administrative Templates > System > Storage Sense > Configure Storage Sense cadence
PowerShell equivalent (generated from the template)
# Run Storage Sense:
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'ConfigStorageSenseGlobalCadence' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
File system and storageADMX: StorageSense.admx · policy name SS_ConfigStorageSenseGlobalCadence
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2016, Windows 10 Version 1903
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\StorageSense |
|---|
| Option | Value | Type | Allowed values |
|---|
| Minimum age (in days) of a files in the Downloads folder before Storage sense will delete it (0 is never deleting files): | ConfigStorageSenseDownloadsCleanupThreshold | REG_DWORD | Number 0 to 365 |
What it does (vendor explanation)
When Storage Sense runs, it can delete files in the user’s Downloads folder if they haven’t been opened for more than a certain number of days.
If the group policy "Allow Storage Sense" is disabled, then this policy does not have any effect.
Enabled:
You must provide the minimum number of days a file can remain unopened before Storage Sense deletes it from Downloads folder. Supported values are: 0 - 365.
If you set this value to zero, Storage Sense will not delete files in the user’s Downloads folder. The default is 0, or never deleting files in the Downloads folder.
Disabled or Not Configured:
By default, Storage Sense will not delete files in the user’s Downloads folder. Users can configure this setting in Storage settings.
Group Policy path: Computer Configuration > Administrative Templates > System > Storage Sense > Configure Storage Storage Downloads cleanup threshold
PowerShell equivalent (generated from the template)
# Minimum age (in days) of a files in the Downloads folder before Storage sense will delete it (0 is never deleting files):
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'ConfigStorageSenseDownloadsCleanupThreshold' -Value <value> -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
File system and storageADMX: StorageSense.admx · policy name SS_ConfigStorageSenseDownloadsCleanupThreshold