Windows进程优化禁用服务,减少后台进程占用

电脑维修技术 20HN2024-07-05 22:13 0

适用于Win10、Win11系统后台服务进程优化,原理是关闭不必要的服务,使电脑性能占用降低,从而提升运行速度。默认系统不做优化,会有上百个进程在后台运行,对于高端电脑优不优化影响不大,但对于配置较低的电脑随便运行几个程序就会导致CPU、内存占用高,导致运行卡慢等,优化后会有明显的效果。此批处理能禁用系统用不到的进程40多项,无过度优化,实机测试不会影响系统的正常运行,并大大降低后台进程对性能的影响。

Windows进程优化禁用服务,减少后台进程占用Win10 Win11 第1张

复制以下代码,粘贴在文本文档,另存为“一键优化.bat”、“保存类型所有文件*.*”、“编码ANSI”,再右键管理员运行即可。

@echo off&color
if exist "%SystemRoot%\SysWOW64" path %path%;%windir%\SysNative;%SystemRoot%\SysWOW64;%~dp0
bcdedit >nul
if '%errorlevel%' NEQ '0' (goto UACPrompt) else (goto UACAdmin)
:UACPrompt
%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
exit /B
:UACAdmin
cd /d "%~dp0"
echo 当前运行路径是:%CD%
echo. &
echo ==Win10-11进程优化禁用服务,谨慎操作==具体位置在注册表中的:HKLM\SYSTEM\ControlSet001\Services\中去对应服务的start值(一般修改3手动或者2自动.4禁止)
echo. &
echo 已获取管理员权限
echo. &
@pause
sc config XboxGipSvc start= DISABLED
sc config ws2ifsl start= DISABLED
sc config WpcMonSvc start= DISABLED
sc config wisvc start= DISABLED
sc config WerSvc start= DISABLED
sc config Wecsvc start= DISABLED
sc config WebClient start= DISABLED
sc config WdiSystemHost start= DISABLED
sc config WdiServiceHost start= DISABLED
sc config WaaSMedicSvc start= DISABLED
sc config UevAgentService start= DISABLED
sc config UevAgentDriver start= DISABLED
sc config udfs start= DISABLED
sc config tzautoupdate start= DISABLED
sc config SysMain start= DISABLED
sc config SNMPTrap start= DISABLED
sc config SmsRouter start= DISABLED
sc config shpamsvc start= DISABLED
sc config SharedAccess start= DISABLED
sc config SgrmBroker start= DISABLED
sc config SgrmAgent start= DISABLED
sc config SCPolicySvc start= DISABLED
sc config RemoteRegistry start= DISABLED
sc config RemoteAccess start= DISABLED
sc config PimIndexMaintenanceSvc start= DISABLED
sc config PeerDistSvc start= DISABLED
sc config PcaSvc start= DISABLED
sc config NetTcpPortSharing start= DISABLED
sc config MsKeyboardFilter start= DISABLED
sc config MSDTC start= DISABLED
sc config iphlpsvc start= DISABLED
sc config InventorySvc start= DISABLED
sc config hvcrash start= DISABLED
sc config GraphicsPerfSvc start= DISABLED
sc config fhsvc start= DISABLED
sc config Fax start= DISABLED
sc config DialogBlockingService start= DISABLED
sc config diagnosticshub.standardcollector.service start= DISABLED
sc config cnghwassist start= DISABLED
sc config cdfs start= DISABLED
sc config AxInstSV start= DISABLED
sc config AppVClient start= DISABLED
sc config AppMgmt start= DISABLED
sc config ALG start= DISABLED
Sc config DiagTrack start= DISABLED
sc config dmwappushservice start= DISABLED
sc config dcpsvc start= DISABLED
sc config ssh-agent start= DISABLED
sc config RetailDemo start= DISABLED
sc config jhi_service start= DISABLED
sc config DolbyDAXAPIService start= DISABLED
sc config RtkAudioService start= DISABLED
sc config MicrosoftEdgeElevationService start= DISABLED
sc config edgeupdatem start= DISABLED
sc config edgeupdate start= DISABLED
echo --去掉删除defender后的预留存文件--
del /a /f /s /q c:\Windows\Containers\serviced\*.*
rd /s /q c:\Windows\Containers\serviced
del /a /f /s /q c:\Windows\Containers\*.*
echo. &
echo --本次服务进程优化已完成--
echo. &
@pause

如执行失败,使用以下为简化批处理,同样另存为.bat运行

@pause
sc config XboxGipSvc start= DISABLED
sc config ws2ifsl start= DISABLED
sc config WpcMonSvc start= DISABLED
sc config wisvc start= DISABLED
sc config WerSvc start= DISABLED
sc config Wecsvc start= DISABLED
sc config WebClient start= DISABLED
sc config WdiSystemHost start= DISABLED
sc config WdiServiceHost start= DISABLED
sc config WaaSMedicSvc start= DISABLED
sc config UevAgentService start= DISABLED
sc config UevAgentDriver start= DISABLED
sc config udfs start= DISABLED
sc config tzautoupdate start= DISABLED
sc config SysMain start= DISABLED
sc config SNMPTrap start= DISABLED
sc config SmsRouter start= DISABLED
sc config shpamsvc start= DISABLED
sc config SharedAccess start= DISABLED
sc config SgrmBroker start= DISABLED
sc config SgrmAgent start= DISABLED
sc config SCPolicySvc start= DISABLED
sc config RemoteRegistry start= DISABLED
sc config RemoteAccess start= DISABLED
sc config PimIndexMaintenanceSvc start= DISABLED
sc config PeerDistSvc start= DISABLED
sc config PcaSvc start= DISABLED
sc config NetTcpPortSharing start= DISABLED
sc config MsKeyboardFilter start= DISABLED
sc config MSDTC start= DISABLED
sc config iphlpsvc start= DISABLED
sc config InventorySvc start= DISABLED
sc config hvcrash start= DISABLED
sc config GraphicsPerfSvc start= DISABLED
sc config fhsvc start= DISABLED
sc config Fax start= DISABLED
sc config DialogBlockingService start= DISABLED
sc config diagnosticshub.standardcollector.service start= DISABLED
sc config cnghwassist start= DISABLED
sc config cdfs start= DISABLED
sc config AxInstSV start= DISABLED
sc config AppVClient start= DISABLED
sc config AppMgmt start= DISABLED
sc config ALG start= DISABLED
Sc config DiagTrack start= DISABLED
sc config dmwappushservice start= DISABLED
sc config dcpsvc start= DISABLED
sc config ssh-agent start= DISABLED
sc config RetailDemo start= DISABLED
sc config jhi_service start= DISABLED
sc config DolbyDAXAPIService start= DISABLED
sc config RtkAudioService start= DISABLED
sc config MicrosoftEdgeElevationService start= DISABLED
sc config edgeupdatem start= DISABLED
sc config edgeupdate start= DISABLED
echo. &
echo --本次服务进程优化已完成--
echo. &
@pause

#Win10#Win11


关注公众号咨询电脑问题

取消评论你是访客,请填写下个人信息吧

暂无评论