' ============================================================
' SetDisableStorageSenseNotifications.vbs
'
' Disable Storage Sense Low-Space Notifications.
' Silences low-disk-space notifications from Storage Sense.
'
' Usage: cscript SetDisableStorageSenseNotifications.vbs
' ============================================================

Option Explicit

Dim objShell
Set objShell = CreateObject("WScript.Shell")

On Error Resume Next
objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy\512", 0, "REG_DWORD"

If Err.Number = 0 Then
    WScript.Echo "Disable Storage Sense Low-Space Notifications applied."
Else
    WScript.Echo "Failed to apply tweak (Error " & Err.Number & ": " & Err.Description & ")"
End If
On Error Goto 0