管理任务栏对齐 Windows 11 - Powershell

问题描述 投票:0回答:2

我想使用PowerShell将Windows 11的任务栏对齐到左侧。

我这样做了:

New-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAl" -Value "0" -PropertyType Dword

我检查了一下,值发生了变化,但任务栏没有移动。

windows powershell taskbar windows-11
2个回答
0
投票

您可能设置的是

HKLM
,而不是
HKCU

在终端/CMD 提示中:

# Query current value
reg query hkcu\software\microsoft\windows\currentversion\explorer\advanced /v TaskbarAl

# Set left align
reg add hkcu\software\microsoft\windows\currentversion\explorer\advanced /v TaskbarAl /t REG_DWORD /f /d 0

# Set center align
reg add hkcu\software\microsoft\windows\currentversion\explorer\advanced /v TaskbarAl /t REG_DWORD /f /d 1

不需要其他任何东西;更改立即生效。


0
投票

这就是我用 Powershell 做到的...

Set-ItemProperty -路径 HKCU:\software\microsoft\window

© www.soinside.com 2019 - 2024. All rights reserved.