🐍 Python 3.10+
Disable Taskbar Chat Icon (Python)
Removes the Chat/Teams icon from the Windows 11 taskbar. Applies the tweak via the stdlib winreg module.
set_disable_chat_icon.py
#!/usr/bin/env python3
"""
set_disable_chat_icon.py
Disable Taskbar Chat Icon.
Removes the Chat/Teams icon from the Windows 11 taskbar.
Usage:
python set_disable_chat_icon.py
"""
import winreg
def main() -> None:
key = winreg.CreateKeyEx(
winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", 0, winreg.KEY_SET_VALUE
)
winreg.SetValueEx(key, "TaskbarMn", 0, winreg.REG_DWORD, 0)
winreg.CloseKey(key)
print("Disable Taskbar Chat Icon applied.")
if __name__ == "__main__":
main()