⚡ PowerShell 5.1+

Disable Taskbar Widgets Icon

Removes the Widgets icon from the Windows 11 taskbar.

By WindowsScripting.com · 699 B
Set-DisableTaskbarWidgets.ps1
<#
.SYNOPSIS
    Disable Taskbar Widgets Icon.

.DESCRIPTION
    Removes the Widgets icon from the Windows 11 taskbar.

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

.EXAMPLE
    .\Set-DisableTaskbarWidgets.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 'TaskbarDa' -Value 0 -PropertyType DWord -Force | Out-Null

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