Windows 11 taskbar centered on an external monitor and left-aligned on the laptop screen

Taskbar Auto-Align: Centered When Docked, Left When Not

A small PowerShell script that centers the Windows 11 taskbar when an external monitor is connected and moves it back to the left on the laptop screen alone. Event-driven, brand-agnostic, and open source.

November 12, 2026 · 4 min · Osvaldo de Sousa