Windows实用技巧

告别杂乱任务栏!一键隐藏搜索框、小组件、聊天和任务视图

admin · 9月15日 · 2025年 · 本文共606个字 · 预计阅读3分钟 211次已读
@echo off
:: 关闭任务栏搜索(0=隐藏,1=显示图标,2=显示搜索框)
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f

:: 关闭小组件(Windows 11)
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarDa /t REG_DWORD /d 0 /f

:: 关闭聊天(Windows 11 Teams)
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarMn /t REG_DWORD /d 0 /f

:: 关闭任务视图按钮
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f

:: 重启资源管理器使更改生效
taskkill /f /im explorer.exe
start explorer.exe

echo 已关闭任务栏的搜索、小组件、聊天和任务视图
pause

保存为编码ANSI的.bat文件,右键 以管理员身份运行

0 条回应