From d23776bbc5b8eb29f4a45a2ff24ad37783a5dbb0 Mon Sep 17 00:00:00 2001 From: "Mr.k" Date: Thu, 18 Apr 2024 00:32:19 +0300 Subject: [PATCH] Fix 'Disable Storage Sense' Tweak in 'tweaks.json' File (#1843) This was pointed out in GitHub issue https://github.com/ChrisTitusTech/winutil/issues/1838 --- config/tweaks.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index cbc4e0f4..177eb5b0 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -2275,11 +2275,10 @@ "panel": "1", "Order": "a010_", "InvokeScript": [ - "Remove-Item -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy\" -Recurse -ErrorAction SilentlyContinue" + "Set-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy\" -Name \"01\" -Value 0 -Type Dword -Force" ], "UndoScript": [ - "New-Item -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy\" | Out-Null - " + "Set-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy\" -Name \"01\" -Value 1 -Type Dword -Force" ] }, "WPFTweaksRemoveEdge": {