⚡ PowerShell 5.1+

Disable Taskbar Chat Icon

Removes the Chat/Teams icon from the Windows 11 taskbar.

By WindowsScripting.com · 690 B
Set-DisableChatIcon.ps1
<#
.SYNOPSIS
    Disable Taskbar Chat Icon.

.DESCRIPTION
    Removes the Chat/Teams icon from the Windows 11 taskbar.

    Sets HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced \ TaskbarMn to 0.

.EXAMPLE
    .\Set-DisableChatIcon.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'TaskbarMn' -Value 0 -PropertyType DWord -Force | Out-Null

Write-Host "Disable Taskbar Chat Icon applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green