@echo off
title Windows系统服务最优化配置方案及一键系统垃圾自动清理
color 2f
echo ************************************************************
echo * Windows系统服务最优化配置方案及 一键系统垃圾自动清理 *
echo * *
echo ************************************************************
echo 正在全自动优化系统服务,请稍侯......
sc config _6DE3E0519933CC22B507988BA0499B87 start= auto
sc failure _6DE3E0519933CC22B507988BA0499B87 reset= 0 actions= restart/0
sc stop bonjoun server
sc config bonjoun server start= demand
sc failure bonjoun server reset= 0 actions= ""/0
sc stop clr_optimization_v2.0.50727_32
sc config clr_optimization_v2.0.50727_32 start= demand
sc failure clr_optimization_v2.0.50727_32 reset= 0 actions= ""/0
sc config Alerter start= disabled
sc failure Alerter reset= 0 actions= ""/0
sc config AeLookupSv start= demand
sc failure AeLookupSv reset= 0 actions= ""/0
sc stop alg
sc config alg start= disabled
sc failure alg reset= 0 actions= ""/0
sc stop aliupdate
sc config aliupdate start= demand
sc failure aliupdate reset= 0 actions= ""/0
sc config AppMgmt start= demand
sc failure AppMgmt reset= 0 actions= ""/0
sc stop aspnet_state
sc config aspnet_state start= demand
sc failure aspnet_state reset= 0 actions= ""/0
sc stop Ati HotKey Poller
sc config Ati HotKey Poller start= demand
sc failure Ati HotKey Poller reset= 0 actions= ""/0
sc config ATI Smart start= demand
sc failure ATI Smart reset= 0 actions= ""/0
sc stop Autodesk Licensing Service
sc config Autodesk Licensing Service start= demand
sc failure Autodesk Licensing Service reset= 0 actions= ""/0
sc config wuauserv start= demand
sc failure wuauserv reset= 0 actions= ""/0
sc config bits start= auto
sc failure bits reset= 0 actions= restart/0
sc config ClipSrv start= disabled
sc failure ClipSrv reset= 0 actions= ""/0
sc config COMSysApp start= demand
sc failure COMSysApp reset= 0 actions= ""/0
sc config Browser start= auto
sc failure Browser reset= 0 actions= restart/0
sc stop ccosm
sc config ccosm start= demand
sc failure ccosm reset= 0 actions= ""/0
sc config CertSvc start= auto
sc failure CertSvc reset= 0 actions= restart/0
sc config ClusSvc start= auto
sc failure ClusSvc reset= 0 actions= restart/0
sc config CryptSvc start= auto
sc failure CryptSvc reset= 0 actions= restart/0
sc config DcomLaunch start= auto
sc failure DcomLaunch reset= 0 actions= restart/0
sc config Dhcp start= auto
sc failure Dhcp reset= 0 actions= restart/0
sc config DHCPServer start= auto
sc failure DHCPServer reset= 0 actions= restart/0
sc config DfsDriver start= auto
sc failure DfsDriver reset= 0 actions= restart/0
sc config TrkWks start= disabled
sc failure TrkWks reset= 0 actions= ""/0
sc config TrkSvr start= disabled
sc failure TrkSvr reset= 0 actions= ""/0
sc config MSDTC start= demand
sc failure MSDTC reset= 0 actions= ""/0
sc config Dns start= auto
sc failure Dns reset= 0 actions= restart/0
sc config Dnscache start= auto
sc failure Dnscache reset= 0 actions= restart/0
sc config EventSystem start= auto
sc failure EventSystem reset= 0 actions= restart/0
sc stop ERSvc
sc config ERSvc start= disabled
sc failure ERSvc reset= 0 actions= ""/0
sc config EapHost start= demand
sc failure EapHost reset= 0 actions= ""/0
sc stop FastUserSwitchingCompatibility
sc config FastUserSwitchingCompatibility start= demand
sc failure FastUserSwitchingCompatibility reset= 0 actions= ""/0
sc config MacFile start= demand
sc failure MacFile reset= 0 actions= ""/0
sc config FLEXnet Licensing Service start= demand
sc failure FLEXnet Licensing Service reset= 0 actions= ""/0
sc config hkmsvc Service start= demand
sc failure hkmsvc Service reset= 0 actions= ""/0
sc stop gusvc
sc config gusvc start= disabled
sc failure gusvc reset= 0 actions= ""/0
sc stop helpsvc
sc config helpsvc start= demand
sc failure helpsvc reset= 0 actions= ""/0
sc config HTTP start= auto
sc failure HTTP reset= 0 actions= restart/0
sc config HTTPFilter start= auto
sc failure HTTPFilter reset= 0 actions= restart/0
sc config HidServ start= disabled
sc failure HidServ reset= 0 actions= ""/0
sc config IAS start= auto
sc failure IAS reset= 0 actions= restart/0
sc config IISADMIN start= auto
sc failure IISADMIN reset= 0 actions= restart/0
sc stop ImapiService
sc config ImapiService start= disabled
sc failure ImapiService reset= 0 actions= ""/0
sc config IsmServ start= disabled
sc failure IsmServ reset= 0 actions= ""/0
sc stop CiSvc
sc config CiSvc start= disabled
sc failure CiSvc reset= 0 actions= ""/0
sc config PolicyAgent start= auto
sc failure PolicyAgent reset= 0 actions= restart/0
sc config Ip6Fw start= auto
sc failure Ip6Fw reset= 0 actions= restart/0
sc config kdc start= auto
sc failure kdc reset= 0 actions= restart/0
sc config dmadmin start= demand
sc failure dmadmin reset= 0 actions= ""/0
sc stop dmserver
sc config dmserver start= demand
sc failure dmserver reset= 0 actions= ""/0
sc config LicenseService start= demand
sc failure LicenseService reset= 0 actions= ""/0
sc config MacPrint start= demand
sc failure MacPrint reset= 0 actions= ""/0
sc stop MDM
sc config MDM start= disabled
sc failure MDM reset= 0 actions= ""/0
sc config Messenger start= disabled
sc failure Messenger reset= 0 actions= ""/0
sc stop usnjsvc
sc config usnjsvc start= demand
sc failure usnjsvc reset= 0 actions= ""/0
sc config MSSEARCH start= demand
sc failure MSSEARCH reset= 0 actions= ""/0
sc stop SwPrv
sc config SwPrv start= disabled
sc failure SwPrv reset= 0 actions= ""/0
sc config MSSQLSERVER start= auto
sc failure MSSQLSERVER reset= 0 actions= restart/0
sc config MSSQLServerADHelper start= demand
sc failure MSSQLServerADHelper reset= 0 actions= ""/0
sc config Netlogon start= demand
sc failure Netlogon reset= 0 actions= ""/0
sc config napagent start= demand
sc failure napagent reset= 0 actions= ""/0
sc stop mnmsrvc
sc config mnmsrvc start= disabled
sc failure mnmsrvc reset= 0 actions= ""/0
sc config Netman start= auto
sc failure Netman reset= 0 actions= restart/0
sc config NetDDEdsdm start= disabled
sc failure NetDDEdsdm reset= 0 actions= ""/0
sc config NetDDE start= disabled
sc failure NetDDE reset= 0 actions= ""/0
sc config Nla start= auto
sc failure Nla reset= 0 actions= restart/0
sc config xmlprov start= demand
sc failure xmlprov reset= 0 actions= ""/0
sc config NtLmSsp start= demand
sc failure NtLmSsp reset= 0 actions= ""/0
sc stop NVSvc
sc config NVSvc start= demand
sc failure NVSvc reset= 0 actions= ""/0
sc config ose start= demand
sc failure ose reset= 0 actions= ""/0
sc stop SysmonLog
sc config SysmonLog start= disabled
sc failure SysmonLog reset= 0 actions= ""/0
sc config PlugPlay start= auto
sc failure PlugPlay reset= 0 actions= restart/0
sc config PWSMINIMYSQL start= auto
sc failure PWSMINIMYSQL reset= 0 actions= restart/0
sc config WmdmPmSN start= demand
sc failure WmdmPmSN reset= 0 actions= ""/0
sc config Spooler start= auto
sc failure Spooler reset= 0 actions= restart/0
sc config LPDSVC start= auto
sc failure LPDSVC reset= 0 actions= restart/0
sc config ProtectedStorage start= auto
sc failure ProtectedStorage reset= 0 actions= restart/0
sc config RSVP start= demand
sc failure RSVP reset= 0 actions= ""/0
sc config RasAuto start= demand
sc failure RasAuto reset= 0 actions= ""/0
sc config RasMan start= auto
sc failure RasMan reset= 0 actions= restart/0
sc config RDSessMgr start= demand
sc failure RDSessMgr reset= 0 actions= ""/0
sc config BINLSVC start= demand
sc failure BINLSVC reset= 0 actions= ""/0
sc config RSoPProv start= disabled
sc failure RSoPProv reset= 0 actions= ""/0
sc config RpcSs start= auto
sc failure RpcSs reset= 0 actions= restart/0
sc config RpcLocator start= demand
sc failure RpcLocator reset= 0 actions= ""/0
sc stop RemoteRegistry
sc config RemoteRegistry start= disabled
sc failure RemoteRegistry reset= 0 actions= ""/0
sc config NtmsSvc start= demand
sc failure NtmsSvc reset= 0 actions= ""/0
sc config RfwService start= auto
sc failure RfwService reset= 0 actions= restart/0
sc config RfwProxySrv start= auto
sc failure RfwProxySrv reset= 0 actions= restart/0
sc config RavAlert start= auto
sc failure RavAlert reset= 0 actions= restart/0
sc config RavAgent start= auto
sc failure RavAgent reset= 0 actions= restart/0
sc config RavService start= auto
sc failure RavService reset= 0 actions= restart/0
sc config RavUpdate start= auto
sc failure RavUpdate reset= 0 actions= restart/0
sc config RsCCenter start= auto
sc failure RsCCenter reset= 0 actions= restart/0
sc config RsRavMon start= auto
sc failure RsRavMon reset= 0 actions= restart/0
sc config RemoteAccess start= disabled
sc failure RemoteAccess reset= 0 actions= ""/0
sc stop seclogon
sc config seclogon start= disabled
sc failure seclogon reset= 0 actions= ""/0
sc config SamSs start= auto
sc failure SamSs reset= 0 actions= restart/0
sc stop wscsvc
sc config wscsvc start= disabled
sc failure wscsvc reset= 0 actions= ""/0
sc config lanmanserver start= auto
sc failure lanmanserver reset= 0 actions= restart/0
sc config Serv-U start= demand
sc failure Serv-U reset= 0 actions= ""/0
sc config ShellHWDetection start= auto
sc failure ShellHWDetection reset= 0 actions= restart/0
sc config SCardSvr start= demand
sc failure SCardSvr reset= 0 actions= ""/0
sc config Groveler start= disabled
sc failure Groveler reset= 0 actions= ""/0
sc config sacsvr start= disabled
sc failure sacsvr reset= 0 actions= ""/0
sc config SQLSERVERAGENT start= demand
sc failure SQLSERVERAGENT reset= 0 actions= ""/0
sc config MSSQLServerOLAPService start= auto
sc failure MSSQLServerOLAPService reset= 0 actions= restart/0
sc config SQLBrowser start= demand
sc failure SQLBrowser reset= 0 actions= ""/0
sc config msftesql start= demand
sc failure msftesql reset= 0 actions= ""/0
sc config MsDtsServer start= auto
sc failure MsDtsServer reset= 0 actions= restart/0
sc config ReportServer start= auto
sc failure ReportServer reset= 0 actions= restart/0
sc config SQLWriter start= auto
sc failure SQLWriter reset= 0 actions= restart/0
sc stop SSDPSRV
sc config SSDPSRV start= disabled
sc failure SSDPSRV reset= 0 actions= ""/0
sc config SENS start= disabled
sc failure SENS reset= 0 actions= ""/0
sc stop srservice
sc config srservice start= disabled
sc failure srservice reset= 0 actions= ""/0
sc stop Schedule
sc config Schedule start= disabled
sc failure Schedule reset= 0 actions= ""/0
sc config LmHosts start= auto
sc failure LmHosts reset= 0 actions= restart/0
sc config TapiSrv start= auto
sc failure TapiSrv reset= 0 actions= restart/0
sc config TlntSvr start= disabled
sc failure TlntSvr reset= 0 actions= ""/0
sc config TermService start= auto
sc failure TermService reset= 0 actions= restart/0
sc config TermServLicensing start= auto
sc failure TermServLicensing reset= 0 actions= restart/0
sc config Tssdis start= disabled
sc failure Tssdis reset= 0 actions= ""/0
sc config Themes start= auto
sc failure Themes reset= 0 actions= restart/0
sc config UPS start= demand
sc failure UPS reset= 0 actions= ""/0
sc config upnphost start= demand
sc failure upnphost reset= 0 actions= ""/0
sc config vmnetDHCP start= demand
sc failure vmnetDHCP reset= 0 actions= ""/0
sc config VMware NAT Service start= demand
sc failure VMware NAT Service reset= 0 actions= ""/0
sc config vmount2 start= demand
sc failure vmount2 reset= 0 actions= ""/0
sc config vds start= demand
sc failure vds reset= 0 actions= ""/0
sc stop VSS
sc config VSS start= disabled
sc failure VSS reset= 0 actions= ""/0
sc config msvsmon80 start= demand
sc failure msvsmon80 reset= 0 actions= ""/0
sc stop WebClient
sc config WebClient start= demand
sc failure WebClient reset= 0 actions= ""/0
sc config AudioSrv start= auto
sc failure AudioSrv reset= 0 actions= restart/0
sc config WudfSvc start= demand
sc failure WudfSvc reset= 0 actions= ""/0
sc config SharedAccess start= auto
sc failure SharedAccess reset= 0 actions= restart/0
sc config WinHttpAutoProxySvc start= demand
sc failure WinHttpAutoProxySvc reset= 0 actions= ""/0
sc stop stisvc
sc config stisvc start= disabled
sc failure stisvc reset= 0 actions= ""/0
sc config MSIServer start= demand
sc failure MSIServer reset= 0 actions= ""/0
sc stop WLSetupSvc
sc config WLSetupSvc start= demand
sc failure WLSetupSvc reset= 0 actions= ""/0
sc stop UMWdf
sc config UMWdf start= demand
sc failure UMWdf reset= 0 actions= ""/0
sc config Wmi start= demand
sc failure Wmi reset= 0 actions= ""/0
sc config winmgmt start= auto
sc failure winmgmt reset= 0 actions= restart/0
sc config WMPNetworkSvc start= demand
sc failure WMPNetworkSvc reset= 0 actions= ""/0
sc stop W32Time
sc config W32Time start= demand
sc failure W32Time reset= 0 actions= ""/0
sc config Dot3svc start= demand
sc failure Dot3svc reset= 0 actions= ""/0
sc config UMWdf start= demand
sc failure UMWdf reset= 0 actions= ""/0
sc config WZCSVC start= demand
sc failure WZCSVC reset= 0 actions= ""/0
sc config WmiApSrv start= demand
sc failure WmiApSrv reset= 0 actions= ""/0
sc config lanmanworkstation start= auto
sc failure lanmanworkstation reset= 0 actions= restart/0
sc config W3SVC start= auto
sc failure W3SVC reset= 0 actions= restart/0
sc config AVP start= auto
sc failure AVP reset= 0 actions= restart/0
sc delete Alerter
sc delete ClipSrv
sc delete trkwks
sc delete trksvr
sc delete ERSvc
sc delete gusvc
sc delete HidServ
sc delete ImapiService
sc delete Cisvc
sc delete Messenger
sc delete SwPrv
sc delete mnmsrvc
sc delete NetDDEdsdm
sc delete NetDDE
sc delete SysmonLog
sc delete RemoteRegistry
sc delete wscsvc
sc delete srservice
sc delete Schedule
sc delete TlntSvr
sc delete vss
echo 已完成windows系统服务的全自动优化
echo 正在自动删除admin$管理共享和ipc$管道共享,请稍侯......
net share admin$ /del
net share IPC$ /del
net share C$ /del
net share D$ /del
net share E$ /del
net share F$ /del
echo 正在全自动删除系统垃圾并对系统执行全自动的减肥工作,请稍侯......
echo 此段代码由lzy原著,香帅keven改进
echo 正在检查cookies、历史纪录等目录位置(当前用户)……
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache>%temp%\cleantmp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cookies>>%temp%\cleantmp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v History>>%temp%\cleantmp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v NetHood>>%temp%\cleantmp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Recent>>%temp%\cleantmp.txt
echo 正在清理当前用户的Cookies,IE缓存,历史纪录等……
for /f "tokens=3*" %%i in (%temp%\cleantmp.txt) do (
for /d %%i in ("%%i %%b\*.*") do rd /q /s "%%i">Nul 2>Nul
del /a /f /s /q "%%i %%b\*.*">Nul 2>Nul
)
echo 正在清理系统临时垃圾文件……
del /a /f /s /q "%userprofile%\Locals~1\Tempor~1\*.*" >Nul 2>Nul
del /a /f /s /q "%userprofile%\Locals~1\Temp\*.*" >Nul 2>Nul
del /a /f /s /q "%userprofile%\cookies\*.*" >Nul 2>Nul
del /a /f /s /q "%userprofile%\recent\*.*" >Nul 2>Nul
del /a /f /s /q "%Temp%\*.*" >Nul 2>Nul
del /a /f /s /q "%Tmp%\*.*" >Nul 2>Nul
del /a /f /s /q "%HomePath%\..\IconCache.db" >Nul 2>Nul
del /a /f /s /q "%SystemDrive%\driver?\*.pnf" >Nul 2>Nul
del /a /f /s /q "%SystemDrive%\driver?\InfCache.1" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*._mp" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.bak" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\kb*.log" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.dmp" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.gid" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.old" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.query" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.tmp" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\inf\InfCache.1" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\driver?\*.pnf" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\driver?\InfCache.1" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\inf\*.pnf" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\minidump\*.*" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\Prefetch\*.*" >Nul 2>Nul
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do del /a /f /q %%i:\autorun.inf %%i:\*.exe & rd /q /s %%i:\recycler %%i:\recycled
rd /q /s "%ProgramFiles%\InstallShield Installation Information" >Nul 2>Nul
rd /q /s "%systemdrive%\Documents and Settings\All Users\Documents\My BoBoTurbo" >Nul 2>Nul
rd /q /s "%systemroot%\Connection Wizard" >Nul 2>Nul
rd /q /s "%systemroot%\Downloaded Installations" >Nul 2>Nul
rd /q /s "%SystemRoot%\Help" >Nul 2>Nul
rd /q /s "%systemroot%\ie7updates" & md "%systemroot%\ie7updates" >Nul 2>Nul
rd /q /s "%SystemRoot%\Offline Web Pages" >Nul 2>Nul
rd /q /s %SystemRoot%\system32\oobe
rd /q /s "%SystemRoot%\system32\ReinstallBackups" >Nul 2>Nul
rd /q /s "%SystemRoot%\SoftwareDistribution\Download" & md "%SystemRoot%\SoftwareDistribution\Download" >Nul 2>Nul
rd /q /s "%SystemRoot%\SoftwareDistribution\datastore" & md "%SystemRoot%\SoftwareDistribution\datastore" >Nul 2>Nul
rd /q /s "%SystemRoot%\SoftwareDistribution\EventCache" & md "%SystemRoot%\SoftwareDistribution\EventCache" >Nul 2>Nul
rd /q /s "%SystemRoot%\temp" & md "%SystemRoot%\temp" >Nul 2>Nul
echo 正在清理无用的磁盘检错文件……
del /a /f /q "%SystemDrive%\*.chk" >Nul 2>Nul
dir %SystemDrive%\found.??? /ad/b >c:\临时垃圾.txt
for /f %%i in (c:\临时垃圾.txt) do rd /q /s "%SystemDrive%\%%i" >Nul 2>Nul
echo 正在清理系统升级补丁留下来的反安装目录……
dir %SystemRoot%\$*$ /ad /b >c:\临时垃圾.txt
for /f %%i in (c:\临时垃圾.txt) do rd /q /s "%SystemRoot%\%%i" >Nul 2>Nul
echo 正在清除常见的软件垃圾项目……
Ren "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" realsched.ex_ >Nul 2>Nul
Del "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" >Nul 2>Nul
rd /q /s "%ProgramFiles%\Tencent\QQGame\Download" >Nul 2>Nul
taskkill /f /im "TIMPlatform.exe" /t >Nul 2>Nul
del /a /f /s /q "%ProgramFiles%\Tencent\QQ\TIMPlatform.exe" >Nul 2>Nul
del /a /f /s /q c:\临时垃圾.txt
regsvr32 /u /s zipfldr.dll & del /f /s /q %systemroot%\ststem32\zipfldr.dll
copy /y %systemroot%\system32\dllcache\ctfmon.exe d:\
copy /y %systemroot%\system32\dllcache\explorer.exe d:\
copy /y %systemroot%\system32\dllcache\userinit.exe d:\
sfc /purgecache
copy /y d:\ctfmon.exe %systemroot%\system32\dllcache\ & del /f /q /s d:\ctfmon.exe
copy /y d:\explorer.exe %systemroot%\system32\dllcache\ & del /f /q /s d:\explorer.exe
copy /y d:\userinit.exe %systemroot%\system32\dllcache\ & del /f /q /s d:\userinit.exe
echo 已完成一键系统垃圾自动清理及系统自动减肥
echo 正在全自动优化系统注册表,请稍侯......
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg delete "HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg delete "HKU\.Default\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v TkBellExe /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg add "HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg add "HKU\.Default\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
regedt32 /s 一键自动优化系统注册表.reg
regedt32 /s 自动导入瑞星杀毒软件.reg
regedt32 /s 自动导入卡巴斯基杀毒软件.reg
regedt32 /s 自动导入瑞星和卡巴斯基杀毒软件.reg
echo 已完成系统注册表的全自动优化
exit
title Windows系统服务最优化配置方案及一键系统垃圾自动清理
color 2f
echo ************************************************************
echo * Windows系统服务最优化配置方案及 一键系统垃圾自动清理 *
echo * *
echo ************************************************************
echo 正在全自动优化系统服务,请稍侯......
sc config _6DE3E0519933CC22B507988BA0499B87 start= auto
sc failure _6DE3E0519933CC22B507988BA0499B87 reset= 0 actions= restart/0
sc stop bonjoun server
sc config bonjoun server start= demand
sc failure bonjoun server reset= 0 actions= ""/0
sc stop clr_optimization_v2.0.50727_32
sc config clr_optimization_v2.0.50727_32 start= demand
sc failure clr_optimization_v2.0.50727_32 reset= 0 actions= ""/0
sc config Alerter start= disabled
sc failure Alerter reset= 0 actions= ""/0
sc config AeLookupSv start= demand
sc failure AeLookupSv reset= 0 actions= ""/0
sc stop alg
sc config alg start= disabled
sc failure alg reset= 0 actions= ""/0
sc stop aliupdate
sc config aliupdate start= demand
sc failure aliupdate reset= 0 actions= ""/0
sc config AppMgmt start= demand
sc failure AppMgmt reset= 0 actions= ""/0
sc stop aspnet_state
sc config aspnet_state start= demand
sc failure aspnet_state reset= 0 actions= ""/0
sc stop Ati HotKey Poller
sc config Ati HotKey Poller start= demand
sc failure Ati HotKey Poller reset= 0 actions= ""/0
sc config ATI Smart start= demand
sc failure ATI Smart reset= 0 actions= ""/0
sc stop Autodesk Licensing Service
sc config Autodesk Licensing Service start= demand
sc failure Autodesk Licensing Service reset= 0 actions= ""/0
sc config wuauserv start= demand
sc failure wuauserv reset= 0 actions= ""/0
sc config bits start= auto
sc failure bits reset= 0 actions= restart/0
sc config ClipSrv start= disabled
sc failure ClipSrv reset= 0 actions= ""/0
sc config COMSysApp start= demand
sc failure COMSysApp reset= 0 actions= ""/0
sc config Browser start= auto
sc failure Browser reset= 0 actions= restart/0
sc stop ccosm
sc config ccosm start= demand
sc failure ccosm reset= 0 actions= ""/0
sc config CertSvc start= auto
sc failure CertSvc reset= 0 actions= restart/0
sc config ClusSvc start= auto
sc failure ClusSvc reset= 0 actions= restart/0
sc config CryptSvc start= auto
sc failure CryptSvc reset= 0 actions= restart/0
sc config DcomLaunch start= auto
sc failure DcomLaunch reset= 0 actions= restart/0
sc config Dhcp start= auto
sc failure Dhcp reset= 0 actions= restart/0
sc config DHCPServer start= auto
sc failure DHCPServer reset= 0 actions= restart/0
sc config DfsDriver start= auto
sc failure DfsDriver reset= 0 actions= restart/0
sc config TrkWks start= disabled
sc failure TrkWks reset= 0 actions= ""/0
sc config TrkSvr start= disabled
sc failure TrkSvr reset= 0 actions= ""/0
sc config MSDTC start= demand
sc failure MSDTC reset= 0 actions= ""/0
sc config Dns start= auto
sc failure Dns reset= 0 actions= restart/0
sc config Dnscache start= auto
sc failure Dnscache reset= 0 actions= restart/0
sc config EventSystem start= auto
sc failure EventSystem reset= 0 actions= restart/0
sc stop ERSvc
sc config ERSvc start= disabled
sc failure ERSvc reset= 0 actions= ""/0
sc config EapHost start= demand
sc failure EapHost reset= 0 actions= ""/0
sc stop FastUserSwitchingCompatibility
sc config FastUserSwitchingCompatibility start= demand
sc failure FastUserSwitchingCompatibility reset= 0 actions= ""/0
sc config MacFile start= demand
sc failure MacFile reset= 0 actions= ""/0
sc config FLEXnet Licensing Service start= demand
sc failure FLEXnet Licensing Service reset= 0 actions= ""/0
sc config hkmsvc Service start= demand
sc failure hkmsvc Service reset= 0 actions= ""/0
sc stop gusvc
sc config gusvc start= disabled
sc failure gusvc reset= 0 actions= ""/0
sc stop helpsvc
sc config helpsvc start= demand
sc failure helpsvc reset= 0 actions= ""/0
sc config HTTP start= auto
sc failure HTTP reset= 0 actions= restart/0
sc config HTTPFilter start= auto
sc failure HTTPFilter reset= 0 actions= restart/0
sc config HidServ start= disabled
sc failure HidServ reset= 0 actions= ""/0
sc config IAS start= auto
sc failure IAS reset= 0 actions= restart/0
sc config IISADMIN start= auto
sc failure IISADMIN reset= 0 actions= restart/0
sc stop ImapiService
sc config ImapiService start= disabled
sc failure ImapiService reset= 0 actions= ""/0
sc config IsmServ start= disabled
sc failure IsmServ reset= 0 actions= ""/0
sc stop CiSvc
sc config CiSvc start= disabled
sc failure CiSvc reset= 0 actions= ""/0
sc config PolicyAgent start= auto
sc failure PolicyAgent reset= 0 actions= restart/0
sc config Ip6Fw start= auto
sc failure Ip6Fw reset= 0 actions= restart/0
sc config kdc start= auto
sc failure kdc reset= 0 actions= restart/0
sc config dmadmin start= demand
sc failure dmadmin reset= 0 actions= ""/0
sc stop dmserver
sc config dmserver start= demand
sc failure dmserver reset= 0 actions= ""/0
sc config LicenseService start= demand
sc failure LicenseService reset= 0 actions= ""/0
sc config MacPrint start= demand
sc failure MacPrint reset= 0 actions= ""/0
sc stop MDM
sc config MDM start= disabled
sc failure MDM reset= 0 actions= ""/0
sc config Messenger start= disabled
sc failure Messenger reset= 0 actions= ""/0
sc stop usnjsvc
sc config usnjsvc start= demand
sc failure usnjsvc reset= 0 actions= ""/0
sc config MSSEARCH start= demand
sc failure MSSEARCH reset= 0 actions= ""/0
sc stop SwPrv
sc config SwPrv start= disabled
sc failure SwPrv reset= 0 actions= ""/0
sc config MSSQLSERVER start= auto
sc failure MSSQLSERVER reset= 0 actions= restart/0
sc config MSSQLServerADHelper start= demand
sc failure MSSQLServerADHelper reset= 0 actions= ""/0
sc config Netlogon start= demand
sc failure Netlogon reset= 0 actions= ""/0
sc config napagent start= demand
sc failure napagent reset= 0 actions= ""/0
sc stop mnmsrvc
sc config mnmsrvc start= disabled
sc failure mnmsrvc reset= 0 actions= ""/0
sc config Netman start= auto
sc failure Netman reset= 0 actions= restart/0
sc config NetDDEdsdm start= disabled
sc failure NetDDEdsdm reset= 0 actions= ""/0
sc config NetDDE start= disabled
sc failure NetDDE reset= 0 actions= ""/0
sc config Nla start= auto
sc failure Nla reset= 0 actions= restart/0
sc config xmlprov start= demand
sc failure xmlprov reset= 0 actions= ""/0
sc config NtLmSsp start= demand
sc failure NtLmSsp reset= 0 actions= ""/0
sc stop NVSvc
sc config NVSvc start= demand
sc failure NVSvc reset= 0 actions= ""/0
sc config ose start= demand
sc failure ose reset= 0 actions= ""/0
sc stop SysmonLog
sc config SysmonLog start= disabled
sc failure SysmonLog reset= 0 actions= ""/0
sc config PlugPlay start= auto
sc failure PlugPlay reset= 0 actions= restart/0
sc config PWSMINIMYSQL start= auto
sc failure PWSMINIMYSQL reset= 0 actions= restart/0
sc config WmdmPmSN start= demand
sc failure WmdmPmSN reset= 0 actions= ""/0
sc config Spooler start= auto
sc failure Spooler reset= 0 actions= restart/0
sc config LPDSVC start= auto
sc failure LPDSVC reset= 0 actions= restart/0
sc config ProtectedStorage start= auto
sc failure ProtectedStorage reset= 0 actions= restart/0
sc config RSVP start= demand
sc failure RSVP reset= 0 actions= ""/0
sc config RasAuto start= demand
sc failure RasAuto reset= 0 actions= ""/0
sc config RasMan start= auto
sc failure RasMan reset= 0 actions= restart/0
sc config RDSessMgr start= demand
sc failure RDSessMgr reset= 0 actions= ""/0
sc config BINLSVC start= demand
sc failure BINLSVC reset= 0 actions= ""/0
sc config RSoPProv start= disabled
sc failure RSoPProv reset= 0 actions= ""/0
sc config RpcSs start= auto
sc failure RpcSs reset= 0 actions= restart/0
sc config RpcLocator start= demand
sc failure RpcLocator reset= 0 actions= ""/0
sc stop RemoteRegistry
sc config RemoteRegistry start= disabled
sc failure RemoteRegistry reset= 0 actions= ""/0
sc config NtmsSvc start= demand
sc failure NtmsSvc reset= 0 actions= ""/0
sc config RfwService start= auto
sc failure RfwService reset= 0 actions= restart/0
sc config RfwProxySrv start= auto
sc failure RfwProxySrv reset= 0 actions= restart/0
sc config RavAlert start= auto
sc failure RavAlert reset= 0 actions= restart/0
sc config RavAgent start= auto
sc failure RavAgent reset= 0 actions= restart/0
sc config RavService start= auto
sc failure RavService reset= 0 actions= restart/0
sc config RavUpdate start= auto
sc failure RavUpdate reset= 0 actions= restart/0
sc config RsCCenter start= auto
sc failure RsCCenter reset= 0 actions= restart/0
sc config RsRavMon start= auto
sc failure RsRavMon reset= 0 actions= restart/0
sc config RemoteAccess start= disabled
sc failure RemoteAccess reset= 0 actions= ""/0
sc stop seclogon
sc config seclogon start= disabled
sc failure seclogon reset= 0 actions= ""/0
sc config SamSs start= auto
sc failure SamSs reset= 0 actions= restart/0
sc stop wscsvc
sc config wscsvc start= disabled
sc failure wscsvc reset= 0 actions= ""/0
sc config lanmanserver start= auto
sc failure lanmanserver reset= 0 actions= restart/0
sc config Serv-U start= demand
sc failure Serv-U reset= 0 actions= ""/0
sc config ShellHWDetection start= auto
sc failure ShellHWDetection reset= 0 actions= restart/0
sc config SCardSvr start= demand
sc failure SCardSvr reset= 0 actions= ""/0
sc config Groveler start= disabled
sc failure Groveler reset= 0 actions= ""/0
sc config sacsvr start= disabled
sc failure sacsvr reset= 0 actions= ""/0
sc config SQLSERVERAGENT start= demand
sc failure SQLSERVERAGENT reset= 0 actions= ""/0
sc config MSSQLServerOLAPService start= auto
sc failure MSSQLServerOLAPService reset= 0 actions= restart/0
sc config SQLBrowser start= demand
sc failure SQLBrowser reset= 0 actions= ""/0
sc config msftesql start= demand
sc failure msftesql reset= 0 actions= ""/0
sc config MsDtsServer start= auto
sc failure MsDtsServer reset= 0 actions= restart/0
sc config ReportServer start= auto
sc failure ReportServer reset= 0 actions= restart/0
sc config SQLWriter start= auto
sc failure SQLWriter reset= 0 actions= restart/0
sc stop SSDPSRV
sc config SSDPSRV start= disabled
sc failure SSDPSRV reset= 0 actions= ""/0
sc config SENS start= disabled
sc failure SENS reset= 0 actions= ""/0
sc stop srservice
sc config srservice start= disabled
sc failure srservice reset= 0 actions= ""/0
sc stop Schedule
sc config Schedule start= disabled
sc failure Schedule reset= 0 actions= ""/0
sc config LmHosts start= auto
sc failure LmHosts reset= 0 actions= restart/0
sc config TapiSrv start= auto
sc failure TapiSrv reset= 0 actions= restart/0
sc config TlntSvr start= disabled
sc failure TlntSvr reset= 0 actions= ""/0
sc config TermService start= auto
sc failure TermService reset= 0 actions= restart/0
sc config TermServLicensing start= auto
sc failure TermServLicensing reset= 0 actions= restart/0
sc config Tssdis start= disabled
sc failure Tssdis reset= 0 actions= ""/0
sc config Themes start= auto
sc failure Themes reset= 0 actions= restart/0
sc config UPS start= demand
sc failure UPS reset= 0 actions= ""/0
sc config upnphost start= demand
sc failure upnphost reset= 0 actions= ""/0
sc config vmnetDHCP start= demand
sc failure vmnetDHCP reset= 0 actions= ""/0
sc config VMware NAT Service start= demand
sc failure VMware NAT Service reset= 0 actions= ""/0
sc config vmount2 start= demand
sc failure vmount2 reset= 0 actions= ""/0
sc config vds start= demand
sc failure vds reset= 0 actions= ""/0
sc stop VSS
sc config VSS start= disabled
sc failure VSS reset= 0 actions= ""/0
sc config msvsmon80 start= demand
sc failure msvsmon80 reset= 0 actions= ""/0
sc stop WebClient
sc config WebClient start= demand
sc failure WebClient reset= 0 actions= ""/0
sc config AudioSrv start= auto
sc failure AudioSrv reset= 0 actions= restart/0
sc config WudfSvc start= demand
sc failure WudfSvc reset= 0 actions= ""/0
sc config SharedAccess start= auto
sc failure SharedAccess reset= 0 actions= restart/0
sc config WinHttpAutoProxySvc start= demand
sc failure WinHttpAutoProxySvc reset= 0 actions= ""/0
sc stop stisvc
sc config stisvc start= disabled
sc failure stisvc reset= 0 actions= ""/0
sc config MSIServer start= demand
sc failure MSIServer reset= 0 actions= ""/0
sc stop WLSetupSvc
sc config WLSetupSvc start= demand
sc failure WLSetupSvc reset= 0 actions= ""/0
sc stop UMWdf
sc config UMWdf start= demand
sc failure UMWdf reset= 0 actions= ""/0
sc config Wmi start= demand
sc failure Wmi reset= 0 actions= ""/0
sc config winmgmt start= auto
sc failure winmgmt reset= 0 actions= restart/0
sc config WMPNetworkSvc start= demand
sc failure WMPNetworkSvc reset= 0 actions= ""/0
sc stop W32Time
sc config W32Time start= demand
sc failure W32Time reset= 0 actions= ""/0
sc config Dot3svc start= demand
sc failure Dot3svc reset= 0 actions= ""/0
sc config UMWdf start= demand
sc failure UMWdf reset= 0 actions= ""/0
sc config WZCSVC start= demand
sc failure WZCSVC reset= 0 actions= ""/0
sc config WmiApSrv start= demand
sc failure WmiApSrv reset= 0 actions= ""/0
sc config lanmanworkstation start= auto
sc failure lanmanworkstation reset= 0 actions= restart/0
sc config W3SVC start= auto
sc failure W3SVC reset= 0 actions= restart/0
sc config AVP start= auto
sc failure AVP reset= 0 actions= restart/0
sc delete Alerter
sc delete ClipSrv
sc delete trkwks
sc delete trksvr
sc delete ERSvc
sc delete gusvc
sc delete HidServ
sc delete ImapiService
sc delete Cisvc
sc delete Messenger
sc delete SwPrv
sc delete mnmsrvc
sc delete NetDDEdsdm
sc delete NetDDE
sc delete SysmonLog
sc delete RemoteRegistry
sc delete wscsvc
sc delete srservice
sc delete Schedule
sc delete TlntSvr
sc delete vss
echo 已完成windows系统服务的全自动优化
echo 正在自动删除admin$管理共享和ipc$管道共享,请稍侯......
net share admin$ /del
net share IPC$ /del
net share C$ /del
net share D$ /del
net share E$ /del
net share F$ /del
echo 正在全自动删除系统垃圾并对系统执行全自动的减肥工作,请稍侯......
echo 此段代码由lzy原著,香帅keven改进
echo 正在检查cookies、历史纪录等目录位置(当前用户)……
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache>%temp%\cleantmp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cookies>>%temp%\cleantmp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v History>>%temp%\cleantmp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v NetHood>>%temp%\cleantmp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Recent>>%temp%\cleantmp.txt
echo 正在清理当前用户的Cookies,IE缓存,历史纪录等……
for /f "tokens=3*" %%i in (%temp%\cleantmp.txt) do (
for /d %%i in ("%%i %%b\*.*") do rd /q /s "%%i">Nul 2>Nul
del /a /f /s /q "%%i %%b\*.*">Nul 2>Nul
)
echo 正在清理系统临时垃圾文件……
del /a /f /s /q "%userprofile%\Locals~1\Tempor~1\*.*" >Nul 2>Nul
del /a /f /s /q "%userprofile%\Locals~1\Temp\*.*" >Nul 2>Nul
del /a /f /s /q "%userprofile%\cookies\*.*" >Nul 2>Nul
del /a /f /s /q "%userprofile%\recent\*.*" >Nul 2>Nul
del /a /f /s /q "%Temp%\*.*" >Nul 2>Nul
del /a /f /s /q "%Tmp%\*.*" >Nul 2>Nul
del /a /f /s /q "%HomePath%\..\IconCache.db" >Nul 2>Nul
del /a /f /s /q "%SystemDrive%\driver?\*.pnf" >Nul 2>Nul
del /a /f /s /q "%SystemDrive%\driver?\InfCache.1" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*._mp" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.bak" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\kb*.log" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.dmp" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.gid" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.old" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.query" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\*.tmp" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\inf\InfCache.1" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\driver?\*.pnf" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\driver?\InfCache.1" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\inf\*.pnf" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\minidump\*.*" >Nul 2>Nul
del /a /f /s /q "%SystemRoot%\Prefetch\*.*" >Nul 2>Nul
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do del /a /f /q %%i:\autorun.inf %%i:\*.exe & rd /q /s %%i:\recycler %%i:\recycled
rd /q /s "%ProgramFiles%\InstallShield Installation Information" >Nul 2>Nul
rd /q /s "%systemdrive%\Documents and Settings\All Users\Documents\My BoBoTurbo" >Nul 2>Nul
rd /q /s "%systemroot%\Connection Wizard" >Nul 2>Nul
rd /q /s "%systemroot%\Downloaded Installations" >Nul 2>Nul
rd /q /s "%SystemRoot%\Help" >Nul 2>Nul
rd /q /s "%systemroot%\ie7updates" & md "%systemroot%\ie7updates" >Nul 2>Nul
rd /q /s "%SystemRoot%\Offline Web Pages" >Nul 2>Nul
rd /q /s %SystemRoot%\system32\oobe
rd /q /s "%SystemRoot%\system32\ReinstallBackups" >Nul 2>Nul
rd /q /s "%SystemRoot%\SoftwareDistribution\Download" & md "%SystemRoot%\SoftwareDistribution\Download" >Nul 2>Nul
rd /q /s "%SystemRoot%\SoftwareDistribution\datastore" & md "%SystemRoot%\SoftwareDistribution\datastore" >Nul 2>Nul
rd /q /s "%SystemRoot%\SoftwareDistribution\EventCache" & md "%SystemRoot%\SoftwareDistribution\EventCache" >Nul 2>Nul
rd /q /s "%SystemRoot%\temp" & md "%SystemRoot%\temp" >Nul 2>Nul
echo 正在清理无用的磁盘检错文件……
del /a /f /q "%SystemDrive%\*.chk" >Nul 2>Nul
dir %SystemDrive%\found.??? /ad/b >c:\临时垃圾.txt
for /f %%i in (c:\临时垃圾.txt) do rd /q /s "%SystemDrive%\%%i" >Nul 2>Nul
echo 正在清理系统升级补丁留下来的反安装目录……
dir %SystemRoot%\$*$ /ad /b >c:\临时垃圾.txt
for /f %%i in (c:\临时垃圾.txt) do rd /q /s "%SystemRoot%\%%i" >Nul 2>Nul
echo 正在清除常见的软件垃圾项目……
Ren "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" realsched.ex_ >Nul 2>Nul
Del "%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" >Nul 2>Nul
rd /q /s "%ProgramFiles%\Tencent\QQGame\Download" >Nul 2>Nul
taskkill /f /im "TIMPlatform.exe" /t >Nul 2>Nul
del /a /f /s /q "%ProgramFiles%\Tencent\QQ\TIMPlatform.exe" >Nul 2>Nul
del /a /f /s /q c:\临时垃圾.txt
regsvr32 /u /s zipfldr.dll & del /f /s /q %systemroot%\ststem32\zipfldr.dll
copy /y %systemroot%\system32\dllcache\ctfmon.exe d:\
copy /y %systemroot%\system32\dllcache\explorer.exe d:\
copy /y %systemroot%\system32\dllcache\userinit.exe d:\
sfc /purgecache
copy /y d:\ctfmon.exe %systemroot%\system32\dllcache\ & del /f /q /s d:\ctfmon.exe
copy /y d:\explorer.exe %systemroot%\system32\dllcache\ & del /f /q /s d:\explorer.exe
copy /y d:\userinit.exe %systemroot%\system32\dllcache\ & del /f /q /s d:\userinit.exe
echo 已完成一键系统垃圾自动清理及系统自动减肥
echo 正在全自动优化系统注册表,请稍侯......
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg delete "HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg delete "HKU\.Default\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v TkBellExe /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg add "HKU\.Default\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg add "HKU\.Default\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /f
regedt32 /s 一键自动优化系统注册表.reg
regedt32 /s 自动导入瑞星杀毒软件.reg
regedt32 /s 自动导入卡巴斯基杀毒软件.reg
regedt32 /s 自动导入瑞星和卡巴斯基杀毒软件.reg
echo 已完成系统注册表的全自动优化
exit
评论