|
鉴于大家都不太满意 义愤填膺 我就保守点 保留蓝牙 共享还有几个有争议的服务 禁用打印 诊断服务 防火墙
远程 这个不是一天半天随手搞出来的 多方参考结合自己多年使用经验 当然不能适合每个人 我只是自己家用 征求一下大家的意见 改动如下
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c ""%~s0"" ::","","runas",0)(window.close)>nul 2>nul&&exit
>>"%Temp%\Reg2Temp.reg" echo Windows Registry Editor Version 5.00
>>"%Temp%\Reg2Temp.reg" echo.
>>"%Temp%\Reg2Temp.reg" echo ;服务优化
>>"%Temp%\Reg2Temp.reg" echo.
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TrkWks]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ws2ifsl]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Wecsvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WebClient]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\DPS]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdiServiceHost]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdiSystemHost]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\UevAgentService]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\UevAgentDriver]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\udfs]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\tzautoupdate]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SysMain]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SNMPTRAP]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SmsRouter]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\shpamsvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SgrmBroker]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SgrmAgent]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SCPolicySvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\RemoteRegistry]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\RemoteAccess]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\PimIndexMaintenanceSvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\PeerDistSvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\PcaSvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\NetTcpPortSharing]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\MsKeyboardFilter]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\MSDTC]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\iphlpsvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\hvcrash]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\GraphicsPerfSvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Fax]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\DialogBlockingService]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\diagnosticshub.standardcollector.service]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\cnghwassist]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\cdfs]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AxInstSV]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AppVClient]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AppMgmt]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ALG]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dmwappushservice]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ssh-agent]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WSearch]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Spooler]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\PrintNotify]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\DusmSvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BITS]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SENS]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\wlidsvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SSDPSRV]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\stisvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\mpssvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TabletInputService]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\wuauserv]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SessionEnv]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TermService]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\UmRdpService]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\XboxGipSvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\XblAuthManager]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\XboxNetApiSvc]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\XblGameSave]
>>"%Temp%\Reg2Temp.reg" echo "Start"=dword:00000004
>>"%Temp%\Reg2Temp.reg" echo.
start /wait regedit /s "%Temp%\Reg2Temp.reg
del /q "%Temp%\Reg2Temp.reg" |
|