📜 VBScript (WSH)

Disable Taskbar Chat Icon (VBScript)

Removes the Chat/Teams icon from the Windows 11 taskbar. Applies the tweak via WScript.Shell.RegWrite.

By WindowsScripting.com · 690 B
SetDisableChatIcon.vbs
' ============================================================
' SetDisableChatIcon.vbs
'
' Disable Taskbar Chat Icon.
' Removes the Chat/Teams icon from the Windows 11 taskbar.
'
' Usage: cscript SetDisableChatIcon.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarMn", 0, "REG_DWORD"

If Err.Number = 0 Then
    WScript.Echo "Disable Taskbar Chat Icon applied."
Else
    WScript.Echo "Failed to apply tweak (Error " & Err.Number & ": " & Err.Description & ")"
End If
On Error Goto 0