⚡ PowerShell 5.1+
Check "Align Taskbar Icons Left" Status
Reads the current registry value behind the "Align Taskbar Icons Left" tweak so you can confirm whether it's applied.
Test-TaskbarAlignLeftStatus.ps1
<#
.SYNOPSIS
Checks whether "Align Taskbar Icons Left" is currently applied.
.DESCRIPTION
Reads HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced \ TaskbarAl and reports its current value,
or reports that it isn't set (falling back to the Windows default).
.EXAMPLE
.\Test-TaskbarAlignLeftStatus.ps1
#>
[CmdletBinding()]
param()
$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
$value = Get-ItemProperty -Path $regPath -Name 'TaskbarAl' -ErrorAction SilentlyContinue
if ($null -eq $value) {
Write-Host "'TaskbarAl' is not set at $regPath (using the Windows default)." -ForegroundColor Yellow
} else {
Write-Host "Current value of 'TaskbarAl': $($value.'TaskbarAl')" -ForegroundColor Green
}