' ============================================================
' CheckDisableFeedbackNotificationsStatus.vbs
'
' Checks whether "Disable Feedback Notifications" is currently applied.
'
' Usage: cscript CheckDisableFeedbackNotificationsStatus.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Siuf\Rules\NumberOfSIUFInPeriod")

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