Skip to content

Latest commit

 

History

History
99 lines (74 loc) · 5.22 KB

File metadata and controls

99 lines (74 loc) · 5.22 KB

Set-TaskbarAlignment

SubModule: GenXdev.Windows | Type: Function | Aliases:

Synopsis

Configures Windows 11+ taskbar alignment between center and left positions.

Description

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).

Syntax

Set-TaskbarAlignment -Justify <String> [<CommonParameters>]

Parameters

Name Type Required Description
-Justify String The taskbar alignment (Center or Left)

Examples

Set-TaskbarAlignment -Justify Left
Sets the Windows 11 taskbar to left alignment
Set-TaskAlign Center -WhatIf
Shows what would happen if taskbar was set to center alignment

Parameter Details

-Justify <String>

The taskbar alignment (Center or Left)

Property Value
Required? Yes
Position? 0
Default value (none)
Accept pipeline input? False
Aliases (none)
Accept wildcard characters? No

Related Links