📜 VBScript (WSH)

Check "Disable Taskbar Widgets Icon" Status (VBScript)

Reads the registry value behind the "Disable Taskbar Widgets Icon" tweak to confirm whether it's applied.

By WindowsScripting.com · 703 B
CheckDisableTaskbarWidgetsStatus.vbs
' ============================================================
' 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