SubModule: GenXdev.Windows | Type: Function | Aliases: —
Configures Windows 11+ taskbar alignment between center and left positions.
Sets the taskbar alignment in Windows 11 and newer versions by modifying the
registry key 'TaskbarAl' under HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion
Explorer\Advanced. The alignment can be set to either center (value 1) or left
(value 0).
Set-TaskbarAlignment -Justify <String> [<CommonParameters>]| Name | Type | Required | Description |
|---|---|---|---|
-Justify |
String | ✅ | The taskbar alignment (Center or Left) |
Set-TaskbarAlignment -Justify Left
Sets the Windows 11 taskbar to left alignmentSet-TaskAlign Center -WhatIf
Shows what would happen if taskbar was set to center alignmentThe taskbar alignment (Center or Left)
| Property | Value |
|---|---|
| Required? | Yes |
| Position? | 0 |
| Default value | (none) |
| Accept pipeline input? | False |
| Aliases | (none) |
| Accept wildcard characters? | No |
- CurrentUserHasElevatedRights
- Enable-Screensaver
- Get-ActiveUser
- Get-ChildProcesses
- Get-ClipboardFiles
- Get-CurrentFocusedProcess
- Get-DesktopScalingFactor
- Get-ForegroundWindow
- Get-KnownFolderPath
- Get-MpCmdRunPath
- Get-PowershellMainWindow
- Get-PowershellMainWindowProcess
- Get-Window
- Get-WindowPosition
- Initialize-ScheduledTaskScripts
- Invoke-CommandElevated
- Invoke-WindowsUpdate
- Pop-Window
- Push-Window
- Save-DesktopScreenShot
- Send-Key
- Send-WakeOnLan
- Set-ClipboardFiles
- Set-ForegroundWindow
- Set-KnownFolderPath
- Set-MonitorPowerOff
- Set-MonitorPowerOn
- Set-WindowPosition
- Set-WindowPositionForSecondary
- Set-WindowsWallpaper
- Show-ExceptionPanel
- Start-ProcessElevated
- Start-ProcessWithPriority
- Test-PathUsingWindowsDefender
- Update-Environment