win11 清理
一、跳过 Win11 硬件限制(老爷机可安装)
1)注册表(安装前 / PE 下导入)
reg
Windows Registry Editor Version 5.00
; 跳过TPM 2.0、安全启动、CPU、内存、硬盘检测
[HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig]
"BypassTPMCheck"=dword:00000001
"BypassSecureBootCheck"=dword:00000001
"BypassRAMCheck"=dword:00000001
"BypassStorageCheck"=dword:00000001
"BypassCPUCheck"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup]
"AllowUpgradesWithUnsupportedTPMOrCPU"=dword:00000001
二、恢复 IE11 + 阻止跳转到 Edge + 修复 Internet 选项
reg
Windows Registry Editor Version 5.00
; 恢复IE开始菜单快捷方式
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE]
@="C:\\Program Files\\Internet Explorer\\iexplore.exe"
"Path"="C:\\Program Files\\Internet Explorer"
; 阻止IE跳Edge
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main]
"DisableEdgeDeflector"=dword:00000001
"DisableIEtoEdgeBrowsing"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main]
"NotifyDisableIEOptions"=dword:00000000
; 修复Internet选项打不开
[HKEY_CLASSES_ROOT\CLSID\{D2E1C38A-6517-4C70-8EEB-4F668A342291}]
@="Internet Options"
IE 主页默认百度
reg
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="https://www.baidu.com"
三、任务栏时钟显示秒数
reg
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowSecondsInSystemClock"=dword:00000001
四、禁用自动安装:OCR、语音、手写等
powershell
# 管理员PowerShell执行
Get-WindowsCapability -Online | Where-Object {
$_.Name -match 'OCR|Handwriting|TextToSpeech|SpeechRecognition'
} | Remove-WindowsCapability -Online
五、修复 “A 字出现问题、无法安装功能”
reg
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"AlwaysUnloadDLL"=dword:00000000
六、禁止系统自动升级 + 全部网络设为按流量计费
reg
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000000
"AUOptions"=dword:00000002
; 所有网络默认按流量计费
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost]
"WiFi"=dword:00000002
"Ethernet"=dword:00000002
七、禁止系统自动安装驱动
reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall]
"DisableDeviceInstall"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching]
"SearchOrderConfig"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Settings]
"DisableWindowsUpdateDeviceSearch"=dword:00000001
八、系统恢复界面添加高级启动
reg
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RecoveryEnvironment]
"DisableAdvancedStartupOptions"=dword:00000000
九、Compact OS 压缩节省 C 盘空间
cmd
compact /compactos:always
十、电源模式:卓越性能 + 高性能 + 节能
cmd
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
powercfg -setactive 381b4222-f694-41f0-9685-ff5bb260df2e
禁用 USB 选择性暂停(防止 USB 断电)
reg
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\*\*\Device Parameters]
"DeviceSelectiveSuspended"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbhub3]
"DisableSelectiveSuspend"=dword:00000001
十一、禁用休眠文件(省 C 盘)
cmd
powercfg /hibernate off
十二、关闭 7G 预留空间
cmd
fsutil behavior set disablereservedstorage 1
十三、集成 .NET Framework 3.5
cmd
dism /online /enable-feature /featurename:NetFx3 /all /source:D:\sources\sxs
(D: 是你的 ISO / 安装盘)
十四、自建账户 = 超级管理员权限
reg
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"FilterAdministratorToken"=dword:00000000
cmd
net localgroup administrators 你的用户名 /add
十五、右键菜单增强(你要的全部)
1)用记事本打开
reg
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad]
@="用记事本打开"
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad\command]
@="notepad.exe %1"
2)管理员取得所有权
reg
[HKEY_CLASSES_ROOT\*\shell\RunAs]
@="管理员取得所有权"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\*\shell\RunAs\command]
@="cmd.exe /c takeown /f %1 && icacls %1 /grant administrators:F"
3)复制文件 / 文件夹路径
reg
[HKEY_CLASSES_ROOT\*\shell\CopyPath]
@="复制文件路径"
[HKEY_CLASSES_ROOT\*\shell\CopyPath\command]
@="cmd /c echo %1 | clip"
[HKEY_CLASSES_ROOT\Directory\shell\CopyFolderPath]
@="复制文件夹路径"
[HKEY_CLASSES_ROOT\Directory\shell\CopyFolderPath\command]
@="cmd /c echo %1 | clip"
4)在此处打开命令行
reg
[HKEY_CLASSES_ROOT\Directory\shell\CommandPromptHere]
@="在此处打开命令行"
[HKEY_CLASSES_ROOT\Directory\shell\CommandPromptHere\command]
@="cmd.exe /s /k pushd %V"
十六、禁用 40 + 不常用服务(稳定版,不影响办公)
cmd
sc config "DiagTrack" start= disabled
sc config "dmwappushservice" start= disabled
sc config "RetailDemo" start= disabled
sc config "MapsBroker" start= disabled
sc config "lfsvc" start= disabled
sc config "PhoneSvc" start= disabled
sc config "Scanner" start= disabled
sc config "wisvc" start= disabled
sc config "XblAuthManager" start= disabled
sc config "XblGameSave" start= disabled
sc config "XboxNetApiSvc" start= disabled
sc config "WerSvc" start= disabled
sc config "WpcMonSvc" start= disabled
sc config "WMPNetworkSvc" start= disabled
sc config "TabletInputService" start= disabled
sc config "RemoteRegistry" start= disabled
sc config "FTPSVC" start= disabled
sc config "IISADMIN" start= disabled
sc config "Browser" start= disabled
sc config "TrkWks" start= disabled
sc config "HomeGroupListener" start= disabled
sc config "HomeGroupProvider" start= disabled
sc config "wercplsupport" start= disabled
sc config "PcaSvc" start= disabled
sc config "WinHttpAutoProxySvc" start= disabled
sc config "NcaSvc" start= disabled
sc config "AuthRouter" start= disabled
sc config "SNMPTRAP" start= disabled
sc config "SessionEnv" start= disabled
sc config "TermService" start= disabled
sc config "UmRdpService" start= disabled
sc config "RpcLocator" start= disabled
sc config "RemoteAccess" start= disabled
sc config "sacsvr" start= disabled
sc config "SstpSvc" start= disabled
sc config "SharedAccess" start= disabled
sc config "PolicyAgent" start= disabled
sc config "dmserver" start= disabled
sc config "PlugPlay" start= auto
执行后首次开机进程约 60 个。
正在找工作,欢迎发 JD 到我邮箱,坐标上海浦东新区。

浙公网安备 33010602011771号