⚡ PowerShell 5.1+
Align Taskbar Icons Left
Switches the Windows 11 taskbar back to left-aligned icons.
Set-TaskbarAlignLeft.ps1
<#
.SYNOPSIS
Align Taskbar Icons Left.
.DESCRIPTION
Switches the Windows 11 taskbar back to left-aligned icons.
Sets HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced \ TaskbarAl to 0.
.EXAMPLE
.\Set-TaskbarAlignLeft.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 'TaskbarAl' -Value 0 -PropertyType DWord -Force | Out-Null
Write-Host "Align Taskbar Icons Left applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green