前言
用了一段时间Win11后,发现有些新特性实在受不了.部分操作和设计实在是太反人类,个人觉得比较难用.故对Win11进行了部分优化以让我使用舒服些.写下这篇文章记录并分享给大家~
开始Go
提权工具.
windows用户给的管理员权限在某些地方还是太弱了.有些命令不能执行或者某些程序的权限比管理员还高或者注册了驱动程序,搞不动.
这里推荐一个工具 NSudo - 系统管理工具包
如何启动?运行NSudo.bat自动判断你系统类型并运行相应程序
后面的命令无特别说明均是命令行执行,推荐用NSudo启动的cmd命令行运行.
Win11右键菜单
切换到旧版右键菜单:
1
| reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
|
恢复回Win11右键菜单:
1
| reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
|
重启Windows资源管理器生效:
1
| taskkill /f /im explorer.exe && start explorer.exe
|
鼠标右键新建文本文档
输入 regedit
回车.

之后在搜索栏粘贴 \HKEY_CLASSES_ROOT\.txt
回车

双击 (默认)
后弹出提示框,查看数值是否为 txtfile
,如果不是需要将值改为 txtfile
在 .txt
文件夹下查看是否有一个 shellNew
文件夹,如果没有需要 右键->新建->项 命名为 shellNew
如果有跳过该步骤
在shellNew
文件夹上右键->新建->字符串值 然后将名称改为 nullfile
,数值数据空白即可



再运行重启Windows资源管理器代码即可生效.
如图:
关闭Windows Defender
WDControl工具

启动电源计划“高性能”
如果你不担心耗电,可以试试这个.例如我的MBP笔记本能耗比非常优秀.开了这个对耗电影响不大.
1
| powercfg.exe -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
|
后面的命令不一定生效(即不能确定是否适用于Win11,不过可以尝试)
ECHO的命令不必执行.
每行复制粘贴执行一次.
关闭Windows防火墙
1 2 3 4
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PrivateProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f sc stop MpsSvc MpsSvc & sc config MpsSvc start=disabled
|
关闭用户账户控制(UAC)
1
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /d 0 /t REG_DWORD /f
|
关闭Smartscreen应用筛选器
1
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /d off /t REG_SZ /f
|
启动电源计划“高性能”
1
| powercfg.exe -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
|
关闭显示器前等待时间: 从不
1 2
| powercfg -change -monitor-timeout-ac 0 powercfg -change -monitor-timeout-dc 0
|
关闭休眠
延迟启动 Superfetch 服务
1
| sc config "SysMain" start= delayed-auto
|
禁止运行计算机自动维护计划
1
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecution" /d 0 /t REG_DWORD /f
|
关闭客户体验改善计划
1
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /d 0 /t REG_DWORD /f
|
关闭自动播放
1 2
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /f
|
关机时强制杀后台不等待
1
| reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /d 0 /t REG_SZ /f
|
关闭远程协助
1 2 3
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowToGetHelp" /d 0 /t REG_dword /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowUnsolicited" /d 0 /t REG_dword /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fDenyTSConnections" /d 1 /t REG_dword /f
|
任务栏日期显示“星期几”
1 2
| reg add "HKEY_CURRENT_USER\Control Panel\International" /v "sLongDate" /d "yyyy'年'M'月'd'日', dddd" /t REG_SZ /f reg add "HKEY_CURRENT_USER\Control Panel\International" /v "sShortDate" /d "yyyy/M/d/ddd" /t REG_SZ /f
|
关闭磁盘碎片整理计划
1
| SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\Defrag\ScheduledDefrag"
|
禁用疑难解答和系统诊断服务
1 2 3 4 5 6
| sc stop WdiSystemHost sc stop WdiServiceHost sc stop DPS sc config DPS start= disabled sc config WdiServiceHost start= disabled sc config WdiSystemHost start= disabled
|
启用防火墙Windows Firewall服务(并非启用防火墙)
1 2 3
| ECHO 启用防火墙Windows Firewall服务(并非启用防火墙) sc config MpsSvc start= auto net start MpsSvc
|
删除回收站右键固定到开始屏幕
1 2
| ECHO 删除回收站右键固定到开始屏幕 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\PintoStartScreen" /f
|
关闭Windows10 要使用本计算机,用户必需输入用户名和密码
1 2 3 4 5
| ECHO 关闭Windows10 要使用本计算机,用户必需输入用户名和密码 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoAdminLogon /d 1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName /d Administrator reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultDomainName /d My pc reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultPassword /d 1234
|
关闭家庭组
1 2
| ECHO 关闭家庭组 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\HomeGroup" /v "DisableHomeGroup" /d 1 /t REG_DWORD /f
|
隐藏资源管理器导航窗格家庭组和网络
1 2 3
| ECHO 隐藏资源管理器导航窗格家庭组和网络 reg add "HKEY_CLASSES_ROOT\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder" /v Attributes /d 2962489612 /t REG_DWORD /f reg add "HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" /v Attributes /d 2962489444 /t REG_DWORD /f
|
关闭开机画面
1 2
| ECHO 关闭开机画面 bcdedit /set quietboot on
|
禁用”最近使用的项目“
1 2 3 4 5 6 7 8 9
| ECHO 禁用"最近使用的项目" reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v "IconStreams" /t REG_BINARY /f reg add "HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v "PastIconsStream" /t REG_BINARY /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /d 1 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoInstrumentation" /d 1 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /d 1 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchHistory" /d 1 /t REG_DWORD /f
|
开启“快速启动”
1 2
| ECHO 开启“快速启动” reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" /v "HiberbootEnabled" /d 1 /t REG_DWORD /f
|
关闭程序兼容性助手
1 2
| ECHO 关闭程序兼容性助手 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisablePCA" /d 1 /t REG_DWORD /f
|
关闭不必要的视觉动画效果
1 2 3 4
| ECHO 关闭不必要的视觉动画效果 reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\DWM" /v "DisallowAnimations" /d 1 /t REG_dword /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "TurnOffSPIAnimations" /d 1 /t REG_dword /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "MinAnimate" /d 0 /t REG_SZ /f
|
关闭不需要的视觉效果
1 2 3 4 5 6 7 8 9 10 11 12
| ECHO 关闭不需要的视觉效果 reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v "VisualFXSetting" /d 3 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM" /v "AlwaysHibernateThumbnails" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "FontSmoothing" /d 2 /t REG_SZ /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM" /v "EnableAeroPeek" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAnimations" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "DragFullWindows" /d 1 /t REG_SZ /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewAlphaSelect" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "IconsOnly" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewShadow" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "MinAnimate" /d 0 /t REG_SZ /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "UserPreferencesMask" /d "9012038010000000" /t REG_BINARY /f
|
IE11开启企业模式
1 2 3
| ECHO IE11开启企业模式 reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode" /v SiteList /d "HKCU\Software\policies\Microsoft\Internet Explorer\Main\EnterpriseMode" /t reg_sz /f reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode" /v Enable /d "" /t reg_sz /f
|
开始屏幕自动显示”应用”视图
1 2
| ECHO 开始屏幕自动显示"应用"视图 reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v ShowAppsViewOnStart /d 1 /t REG_DWORD /f
|
清除右键多余菜单
1 2 3 4 5 6
| ECHO 清除右键多余菜单 regsvr32 /u /s igfxpph.dll reg delete HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers /f reg add HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\new /ve /d {D969A300-E7FF-11d0-A93B-00A0C90F2719} reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v HotKeysCmds /f reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IgfxTray /f
|
打开IE请勿追踪功能(Do Not Track)
1 2 3 4
| ECHO 打开IE请勿追踪功能(Do Not Track) reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "DoNotTrack" /d "1" /t REG_DWORD /f taskkill /f /im iexplore.exe ECHO 完成
|
设置窗口超窄边框
1 2
| ECHO 设置窗口超窄边框 reg add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "PaddedBorderWidth" /d 0 /t REG_SZ /f
|
禁止一联网就打开浏览
1 2
| ECHO 禁止一联网就打开浏览器 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator" /v "NoActiveProbe" /d 1 /t REG_DWORD /f
|
禁用任务计划程序自启项
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| ECHO 禁用任务计划程序自启项 SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\SkyDrive\Routine Maintenance Task" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\SkyDrive\Idle Sync Maintenance Task" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\Diagnosis\Scheduled" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" SCHTASKS /Change /DISABLE /TN "\GoogleUpdateTaskMachineUA" SCHTASKS /Change /DISABLE /TN "\GoogleUpdateTaskMachineCore" SCHTASKS /Change /DISABLE /TN "\Microsoft\Office\OfficeTelemetryAgentFallBack" SCHTASKS /Change /DISABLE /TN "\Microsoft\Office\OfficeTelemetryAgentLogOn" SCHTASKS /Change /DISABLE /TN "\AdobeAAMUpdater-1.0-%computername%-%username%" SCHTASKS /Change /DISABLE /TN "\Microsoft\Office\Office 15 Subscription Heartbeat"
|
去除快捷方式小箭头和后缀
1 2 3 4
| ECHO 去除快捷方式小箭头和后缀 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v link /d "00000000" /t REG_BINARY /f del "%userprofile%\AppData\Local\iconcache.db" /f /q
|
去除UAC小盾牌
1 2 3 4 5 6 7
| ECHO 去除UAC小盾牌 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 77 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f taskkill /f /im explorer.exe attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db" del "%userprofile%\AppData\Local\iconcache.db" /f /q start explorer
|
Win10去掉桌面箭头
1 2 3 4 5 6
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f taskkill /f /im explorer.exe attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db" del "%userprofile%\AppData\Local\iconcache.db" /f /q start explorer pause
|
Win10恢复桌面箭头
1 2 3 4 5 6
| reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /f taskkill /f /im explorer.exe attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db" del "%userprofile%\AppData\Local\iconcache.db" /f /q start explorer pause
|