|
本帖最后由 jpt 于 2024-7-3 15:27 编辑
以下批处理另存为ANSI格式不乱码,扩展名.bat 即一键运行了(能禁用系统用不到的进程40多项,PE下对系统精简后再执行本小脚本即是50左右进程的了……)
---自己也可再追加,进程40也能到,担涉及到的应用可能就受限了---
~~没有最好只有更好,适合自己的才是真~~~
@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
以下为小说明,不在批处理内:
本一键批处理以:Win10-1945-及Win11.22631-综合精选日常用不到进程禁止,达到系统更顺畅
1、内含 edge三个更新禁止项,在浏览器更新后不再更新时执行或直接去掉保持常更新(在系统大更新后也会自动恢复)。
2、内含在系统去掉Defender后的Windows\Containers文件夹内留存文件清除,若保留
原系统Defender,则脚本后三项建议去掉以保持Defender的完整性:右键/选中del和RD前缀的三项/删除/保存/即可。
有说执行失败,以下为简化批处理-同样存为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
|
评分
-
查看全部评分
|