管理任务栏对齐Windows 11 -PowerShell

发布于 2025-01-24 06:45:55 字数 242 浏览 2 评论 0原文

我希望使用PowerShell对齐Windows 11的任务栏。

我这样做了:

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

我进行了审查,价值已更改,但任务栏不会移动。

I want align the taskbar of windows 11 to the left side using PowerShell.

I did this:

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

I review and the value was changed but the taskbar don't move.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

妄断弥空 2025-01-31 06:45:55

这就是我将开始菜单与PowerShell保持一致的方式...

Set-ItemProperty -Path HKCU:\software\microsoft\windows\currentversion\explorer\advanced -Name 'TaskbarAl' -Type 'DWord' -Value 0

这就是我将搜索栏更改为图标的方式...

Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name 'SearchboxTaskbarMode' -Type 'DWord' -Value 1

This is how I set the Start menu to align left with Powershell...

Set-ItemProperty -Path HKCU:\software\microsoft\windows\currentversion\explorer\advanced -Name 'TaskbarAl' -Type 'DWord' -Value 0

This is how I changed the search bar to a icon...

Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name 'SearchboxTaskbarMode' -Type 'DWord' -Value 1
岁月无声 2025-01-31 06:45:55

您可能正在设置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

不需要其他;更改立即生效。

You may have been setting HKLM, not HKCU.

In a Terminal/CMD prompt:

# 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

Nothing else is required; the changes take effect instantly.

遮云壑 2025-01-31 06:45:55

我不知道为什么,但是有了powershell,我做不到。最后,我做了“ reg add”。

I don't know why but with Powershell I could not did it. Finally I did with "reg add".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文