⚡ PowerShell 5.1+

Check "Disable Taskbar Widgets Icon" Status

Reads the current registry value behind the "Disable Taskbar Widgets Icon" tweak so you can confirm whether it's applied.

By WindowsScripting.com · 775 B
Test-DisableTaskbarWidgetsStatus.ps1
<#
.SYNOPSIS
    Checks whether "Disable Taskbar Widgets Icon" is currently applied.

.DESCRIPTION
    Reads HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced \ TaskbarDa and reports its current value,
    or reports that it isn't set (falling back to the Windows default).

.EXAMPLE
    .\Test-DisableTaskbarWidgetsStatus.ps1
#>

[CmdletBinding()]
param()

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

$value = Get-ItemProperty -Path $regPath -Name 'TaskbarDa' -ErrorAction SilentlyContinue

if ($null -eq $value) {
    Write-Host "'TaskbarDa' is not set at $regPath (using the Windows default)." -ForegroundColor Yellow
} else {
    Write-Host "Current value of 'TaskbarDa': $($value.'TaskbarDa')" -ForegroundColor Green
}