@echo off
:: ============================================================
:: SetTaskbarAlignLeft.bat
::
:: Align Taskbar Icons Left.
:: Switches the Windows 11 taskbar back to left-aligned icons.
:: ============================================================

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAl" /t REG_DWORD /d "0" /f

if %ERRORLEVEL% EQU 0 (
    echo Align Taskbar Icons Left applied.
) else (
    echo Failed to apply tweak. Try running this script as Administrator.
)
pause