' ============================================================
' CheckDisableTaskbarWidgetsStatus.vbs
'
' Checks whether "Disable Taskbar Widgets Icon" is currently applied.
'
' Usage: cscript CheckDisableTaskbarWidgetsStatus.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDa")

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