📊 VBA (Excel)

Apply Disable Storage Sense Low-Space Notifications (VBA)

Silences low-disk-space notifications from Storage Sense. Applied via WScript.Shell.RegWrite from VBA.

By WindowsScripting.com · 493 B
DisableStorageSenseNotificationsRegSet.bas
Attribute VB_Name = "DisableStorageSenseNotificationsRegSet"
Option Explicit

Public Sub DisableStorageSenseNotificationsRegSet()
    Dim wsh As Object
    Dim regPath As String

    Set wsh = CreateObject("WScript.Shell")
    regPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy\512"

    wsh.RegWrite regPath, 0, "REG_DWORD"

    MsgBox "Disable Storage Sense Low-Space Notifications applied." & vbCrLf & regPath, vbInformation
End Sub