diff --git a/Assets/Features.json b/Assets/Features.json index 5a2f61f..6fcd907 100644 --- a/Assets/Features.json +++ b/Assets/Features.json @@ -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", diff --git a/README.md b/README.md index 2c032ae..c3bf8a6 100755 --- a/README.md +++ b/README.md @@ -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) diff --git a/Regfiles/Disable_Storage_Sense.reg b/Regfiles/Disable_Storage_Sense.reg new file mode 100644 index 0000000..c15ca06 --- /dev/null +++ b/Regfiles/Disable_Storage_Sense.reg @@ -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 diff --git a/Regfiles/Sysprep/Disable_Storage_Sense.reg b/Regfiles/Sysprep/Disable_Storage_Sense.reg new file mode 100644 index 0000000..25bd154 --- /dev/null +++ b/Regfiles/Sysprep/Disable_Storage_Sense.reg @@ -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 + diff --git a/Regfiles/Undo/Enable_Storage_Sense.reg b/Regfiles/Undo/Enable_Storage_Sense.reg new file mode 100644 index 0000000..afc7f7f --- /dev/null +++ b/Regfiles/Undo/Enable_Storage_Sense.reg @@ -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 + diff --git a/Scripts/Get.ps1 b/Scripts/Get.ps1 index 6708919..9f43619 100644 --- a/Scripts/Get.ps1 +++ b/Scripts/Get.ps1 @@ -29,6 +29,7 @@ param ( [switch]$DisableFastStartup, [switch]$DisableBitlockerAutoEncryption, [switch]$DisableModernStandbyNetworking, + [switch]$DisableStorageSense, [switch]$DisableUpdateASAP, [switch]$PreventUpdateAutoReboot, [switch]$DisableDeliveryOptimization, diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 5786ff3..9ee5976 100755 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -31,6 +31,7 @@ param ( [switch]$DisableFastStartup, [switch]$DisableBitlockerAutoEncryption, [switch]$DisableModernStandbyNetworking, + [switch]$DisableStorageSense, [switch]$DisableUpdateASAP, [switch]$PreventUpdateAutoReboot, [switch]$DisableDeliveryOptimization,