📜 VBScript (WSH)
Disable Taskbar Widgets Icon (VBScript)
Removes the Widgets icon from the Windows 11 taskbar. Applies the tweak via WScript.Shell.RegWrite.
SetDisableTaskbarWidgets.vbs
' ============================================================
' SetDisableTaskbarWidgets.vbs
'
' Disable Taskbar Widgets Icon.
' Removes the Widgets icon from the Windows 11 taskbar.
'
' Usage: cscript SetDisableTaskbarWidgets.vbs
' ============================================================
Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDa", 0, "REG_DWORD"
If Err.Number = 0 Then
WScript.Echo "Disable Taskbar Widgets Icon applied."
Else
WScript.Echo "Failed to apply tweak (Error " & Err.Number & ": " & Err.Description & ")"
End If
On Error Goto 0