好友
阅读权限10
听众
最后登录1970-1-1
|
保存下面代码为yh.bat文件,并双击运行
@echo off
color a
echo.
echo.
echo ** XP 一键优化 超爽版 (R) **
echo BY HackJam
echo HUC
echo 开始对系统服务优化!
echo 屏蔽对ZIP文件的支持
regsvr32 /u /s zipfldr.dll
echo 屏蔽视频预览和刻录功能
regsvr32 /u /s shmedia.dll
echo 拯救失落的“搜索”
regsvr32 /s urlmon.dll
echo 纠正IE保存mht网页错误
regsvr32 /s inetcomm.dll
echo 修正WinUpdate更新提示“IEXPLORE错误”
regsvr32 /u /s wuv3is.dll
del "%ProgramFiles%\WindowsUpdate\wuv3is.dll"
echo 防范 WMF 图形引擎解码漏洞(3行),:
ASSOC .wmf=""
ASSOC .emf=""
cls
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager"/v AutoChkTimeOut /t reg_dword /d 1 /f >nul
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" /v Auto /t reg_sz /d 0 /f >nul
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v AutoEndTasks /t reg_sz /d 1 /f >nul
reg add "HKCU\Control Panel\Desktop" /v HungAppTimeout /t reg_sz /d 100 /f >nul
reg add "HKCU\Control Panel\Desktop" /v WaitToKillAppTimeout /t reg_sz /d 1000 /f >nul
reg add "HKCU\Control Panel\Desktop" /v MenuShowDelay /t reg_sz /d 0 /f >nul
reg add HKLM\SYSTEM\CurrentControlSet\Control /v WaitToKillServiceTimeout /t reg_sz /d 1000 /f >nul
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnablePrefetcher /t reg_dword /d 00000001 /f >nul
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer /v AlwaysUnloadDLL /t reg_dword /d 00000001 /f >nul
reg add HKLM\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction /v Enable /t reg_sz /d Y /f >nul
echo 开机关机速度优化成功!!!
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v MenuShowDelay /d 0 /f
echo 菜单弹出速度优化成功!!
chkntfs/t:0
echo 磁盘扫描时间优化成功
reg add HKLM\SYSTEM\CurrentControlSet\Services\Vxd\BIOS /v CPUPriority /t reg_dword /d 1 /f >nul
reg add HKLM\SYSTEM\CurrentControlSet\Services\Vxd\BIOS /v PCIConcur /t reg_dword /d 1 /f >nul
reg add HKLM\SYSTEM\CurrentControlSet\Services\Vxd\BIOS /v FastDRAM /t reg_dword /d 1 /f >nul
reg add HKLM\SYSTEM\CurrentControlSet\Services\Vxd\BIOS /v AGPConcur /t reg_dword /d 1 /f >nul
echo 硬件优化完成
echo 开始封杀135,445端口...
reg add HKLM\SOFTWARE\Microsoft\Ole /v EnableDCOM /d N /f
reg add HKLM\SOFTWARE\Microsoft\Rpc /v "DCOM Protocols" /t REG_MULTI_SZ /d ncacn_spx\0ncacn_nb_nb\0ncacn_nb_ipx\0 /f
sc config MSDTC start= DISABLED
reg add HKLM\SYSTEM\CurrentControlSet\Services\NetBT\Parameters /v SMBDeviceEnabled /t REG_DWORD /d 0 /f
echo 封杀135,445端口结束!
echo 系统注册表优化完成!
sc config messenger start= disabled
sc config wuauserv start= disabled
sc config browser start= demand
sc config wscsvc start= disabled
sc config mdm start= disabled
sc config lanmanserver start= disabled
sc config spooler start= disabled !!(关闭打印机服务,如果需要使用的话,删除此行)!!
sc config remoteregistry start= demand
sc config schedule start= demand
sc config lmhosts start= demand
sc config termservice start= disabled
sc config wzcsvc start= disabled
sc config slservice start= disabled
sc config wmi start= disabled
sc config "adobe lm service" start= disabled
sc config "vmware nat service" start= disabled
sc config ersvc start= disabled
sc config "ati hotkey poller" start= disabled
sc config dhcp start= disabled
sc config vmauthdservice start= disabled
sc config vmnetdhcp start= disabled
sc config httpfilter start= disabled
sc config dhcp start= disabled
sc config sens start= disabled
sc config ehsched start= disabled
sc config ehrecvr start= disabled
sc config policyagent start= disabled
sc config alerter start= disabled
sc config dnscache start= disabled
sc config ssdpsrv start= disabled
sc config w32time start= disabled
sc config shareaccess start= disabled
sc config alerter start= demand
echo 系统服务优化完毕!
echo 注册表优化完毕!
echo 开始导入OEM信息!
copy oemlogo.bmp c:\windows\system32\
copy oeminfo.ini c:\windows\system32\
echo OEM信息导入完毕!
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\小甜饼s\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃圾完成!
echo 清除所有多余的启动项目..
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /va /f
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /va /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v ctfmon.exe /d C:\WINDOWS\system32\ctfmon.exe
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v command /d ""C:\WINDOWS\IME\imjp8_1\IMJPMIG.EXE" /Spoil /RemAdvDef /Migration32"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v hkey /d HKLM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v inimapping /d 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v item /d IMJPMIG
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Run
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v command /d "C:\WINDOWS\system32\IME\TINTLGNT\TINTSETP.EXE /IMEName"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v hkey /d HKLM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v inimapping /d 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v item /d TINTSETP
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Run
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v command /d ""C:\WINDOWS\IME\imjp8_1\IMJPMIG.EXE" /Spoil /RemAdvDef /Migration32"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v hkey /d HKLM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v inimapping /d 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v item /d TINTSETP
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Run
del "C:\Documents and Settings\All Users\「开始」菜单\程序\启动\*.*" /q /f
del "C:\Documents and Settings\Default User\「开始」菜单\程序\启动\*.*" /q /f
del "%userprofile%\「开始」菜单\程序\启动\*.*" /q /f
echo 清除所有多余的启动项目成功!
echo 感谢使用HackJam软件!
pause |
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|