🟣 C# / .NET 6+
Disable Taskbar Chat Icon (C#)
Removes the Chat/Teams icon from the Windows 11 taskbar. Applies the tweak via Microsoft.Win32.Registry.
SetDisableChatIcon.cs
// SetDisableChatIcon.cs
//
// Disable Taskbar Chat Icon.
// Removes the Chat/Teams icon from the Windows 11 taskbar.
//
// Usage: dotnet new console -o SetDisableChatIcon, replace Program.cs with this
// file, then dotnet run.
using System;
using Microsoft.Win32;
using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced");
key.SetValue("TaskbarMn", 0, RegistryValueKind.DWord);
Console.WriteLine("Disable Taskbar Chat Icon applied.");