Fix 'Disable Storage Sense' Tweak in 'tweaks.json' File (#1843)

This was pointed out in GitHub issue https://github.com/ChrisTitusTech/winutil/issues/1838
This commit is contained in:
Mr.k 2024-04-18 00:32:19 +03:00 committed by GitHub
parent 37bf8bfa4e
commit d23776bbc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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": {