📜 VBScript (WSH)

Check "Disable Storage Sense Low-Space Notifications" Status (VBScript)

Reads the registry value behind the "Disable Storage Sense Low-Space Notifications" tweak to confirm whether it's applied.

By WindowsScripting.com · 744 B
CheckDisableStorageSenseNotificationsStatus.vbs
' ============================================================
' CheckDisableStorageSenseNotificationsStatus.vbs
'
' Checks whether "Disable Storage Sense Low-Space Notifications" is currently applied.
'
' Usage: cscript CheckDisableStorageSenseNotificationsStatus.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy\512")

If Err.Number <> 0 Then
    WScript.Echo "'512' is not set (using the Windows default)."
Else
    WScript.Echo "Current value of '512': " & currentValue
End If
On Error Goto 0