Add option to disable Storage Sense automatic disk cleanup (#507)

This commit is contained in:
Jeffrey
2026-03-07 20:29:08 +01:00
committed by GitHub
parent 70f8170e81
commit 9afd4ee02e
7 changed files with 33 additions and 0 deletions

View File

@@ -967,6 +967,19 @@
"MinVersion": null,
"MaxVersion": 22621
},
{
"FeatureId": "DisableStorageSense",
"Label": "Storage Sense automatic disk cleanup",
"ToolTip": "This will disable Storage Sense, which automatically frees up disk space by deleting temporary files, emptying the recycle bin and cleaning up files in the Downloads folder.",
"Category": "System",
"Action": "Disable",
"RegistryKey": "Disable_Storage_Sense.reg",
"ApplyText": "Disabling Storage Sense automatic disk cleanup...",
"UndoAction": "Enable",
"RegistryUndoKey": "Enable_Storage_Sense.reg",
"MinVersion": 22000,
"MaxVersion": null
},
{
"FeatureId": "DisableFastStartup",
"Label": "fast start-up",

View File

@@ -110,6 +110,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
- Restore the old Windows 10 style context menu. (W11 only)
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
- Disable the Sticky Keys keyboard shortcut. (W11 only)
- Disable Storage Sense automatic disk cleanup.
- Disable fast start-up to ensure a full shutdown.
- Disable BitLocker automatic device encryption.
- Disable network connectivity during Modern Standby to reduce battery drain. (W11 only)

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
; Disable Storage Sense
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy]
"01"=dword:00000000

View File

@@ -0,0 +1,6 @@
Windows Registry Editor Version 5.00
; Disable Storage Sense
[HKEY_USERS\Default\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy]
"01"=dword:00000000

View File

@@ -0,0 +1,6 @@
Windows Registry Editor Version 5.00
; Enable Storage Sense
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy]
"01"=dword:00000001

View File

@@ -29,6 +29,7 @@ param (
[switch]$DisableFastStartup,
[switch]$DisableBitlockerAutoEncryption,
[switch]$DisableModernStandbyNetworking,
[switch]$DisableStorageSense,
[switch]$DisableUpdateASAP,
[switch]$PreventUpdateAutoReboot,
[switch]$DisableDeliveryOptimization,

View File

@@ -31,6 +31,7 @@ param (
[switch]$DisableFastStartup,
[switch]$DisableBitlockerAutoEncryption,
[switch]$DisableModernStandbyNetworking,
[switch]$DisableStorageSense,
[switch]$DisableUpdateASAP,
[switch]$PreventUpdateAutoReboot,
[switch]$DisableDeliveryOptimization,