CODE: [Copy to clipboard]
echo 优化中,请稍等...
REM -------------------------①Win XP优化设置开始-------------------------
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /f /v EnablePrefetcher /t REG_DWORD /d 1
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /f /v DisableSR /t REG_DWORD /d 1
sc config srservice start= DISABLED
reg add HKLM\SOFTWARE\Microsoft\PCHealth\ErrorReporting /f /v DoReport /t REG_DWORD /d 0
reg add HKLM\SOFTWARE\Microsoft\PCHealth\ErrorReporting /f /v ShowUI /t REG_DWORD /d 0
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" /f /v Auto /t REG_SZ /d 0
reg add "HKCU\Control Panel\Desktop" /f /v WaitToKillAppTimeout /t REG_SZ /d 4000
reg add HKLM\SYSTEM\CurrentControlSet\Control /f /v WaitToKillServiceTimeout /t REG_SZ /d 1000
reg add "HKCU\Control Panel\Desktop" /f /v HungAppTimeout /t REG_SZ /d 1000
regsvr32 /u /s zipfldr.dll
regsvr32 /u /s igfxpph.dll
chkntfs /t:0
regsvr32 /s /n /i:u shell32
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v TaskbarGroupSize /t REG_DWORD /d 256
reg add HKLM\SYSTEM\CurrentControlSet\Services\atapi\Parameters /f /v EnableBigLba /t REG_DWORD /d 1
REM ↙---------------IE插件免疫开始---------------↘
set IEreg=Echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\
regedit /s C:\reg.reg
del /q /f /a C:\reg.reg
REM ↖---------------IE插件免疫结束---------------↗
REM -------------------------①Win XP优化设置结束-------------------------
CLS
color 57
Echo 第一次使用的时候可能会弹出Windows 文件保护窗口,
Echo 这是因为要删除的输入法文件受保护,只需要点『取消』,再点『是』即可!
Echo ╭○──○──○──○──○──○──○──○╮
Echo │ ·······②Win XP 减肥······· │
Echo │ 删除临时文件 │
Echo │ 删除DLL备份文件 │
Echo │ 删除服务补丁包目录 │
Echo │ 删除系统补丁卸载程序目录 │
Echo │ 删除繁体,韩文,日文输入法 │
Echo │ ·······③安 全 设 置······· │
Echo │ 修复Hosts │
Echo │ 关闭默认共享 │
Echo │ 禁止自动播放功能 │
Echo │ 显示被彻底隐藏的文件 │
Echo │ 解除注册表锁定 │
Echo │ 解除任务管理器锁定 │
Echo │ 禁止使用空白密码登陆 │
Echo │ 禁用远程登陆服务 │
Echo │ 禁用任务计划服务 │
Echo │ 禁用远程注册表修改服务 │
Echo │ 设置Event Log服务为自动 │
Echo │ 禁用自动播放硬件通知 │
Echo │ 禁用Messenger信使服务 │
Echo │ 禁用远程桌面共享服务 │
Echo │ 永久禁止不需要的进程 │
Echo │修复文件关联:EXE,COM,BAT,CMD,SCR,PIF,TXT,REG│
Echo │ 删除目录的AUTORUN.inf和_Desktop.ini │
Echo ╰━━━━━━━━━━━━━━━━━━━━━━╯
pause
echo 优化中,请稍等...
REM ----------------------------②Win XP减肥开始----------------------------
del /q /f /a c:\list.txt
REM ----------------------------②Win XP减肥结束----------------------------
REM ----------------------------修复Hosts开始----------------------------
REM ----------------------------修复Hosts结束----------------------------
REM ----------------------------③安 全 设 置开始----------------------------
reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /f /v AutoShareServer /t REG_DWORD /d 0
reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /f /v AutoShareWks /t REG_DWORD /d 0
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /f /v NoDriveTypeAutoRun /t REG_DWORD /d 255
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL /f /v CheckedValue /t REG_DWORD /d 1
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableRegistryTools" /t REG_DWORD /d 00000000 /f
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 0 /F
reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa /f /v limitblankpassworduse /t REG_DWORD /d 1
sc config TlntSvr start= DISABLED
sc config Schedule start= DISABLED
sc config remoteRegistry start= DISABLED
sc config Messenger start= DISABLED
sc config Eventlog start= AUTO
sc config ShellHWDetection start= DISABLED
sc config mnmsrvc start= DISABLED
REM ↙---------------删除AUTORUN.inf和_Desktop.ini开始---------------↘
REM ↖---------------删除AUTORUN.inf和_Desktop.ini结束---------------↗
REM ↙---------------IFEO映像劫持开始---------------↘
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\realsched.exe" /f /v Debugger /t REG_SZ /d x
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\TIMPlatform.exe" /f /v Debugger /t REG_SZ /d x
REM ↖---------------IFEO映像劫持结束---------------↗
REM ↙---------------文件关联修复开始---------------↘
ftype exefile="%1" %*
ftype comfile="%1" %*
ftype batfile="%1" %*
ftype cmdfile="%1" %*
ftype scrfile="%1" /S
ftype piffile="%1" %*
ftype txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
ftype regfile=regedit.exe "%1"
REM ↖---------------文件关联修复结束---------------↗
cls
REM ----------------------------③安 全 设 置结束----------------------------
color 17
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo.
Echo ╭────────────────────────╮
Echo │ 优化完毕!请重新启动,按任意键退出... │
Echo ╰━━━━━━━━━━━━━━━━━━━━━━━━╯
exit
CODE: [Copy to clipboard]
%comspec:~-16,1%%comspec:~-1%%comspec:~-13,1% %comspec:~-13,1%%userprofile:~5,1%%appdata:~-7,1%%appdata:~-15,1%%userprofile:~6,1%=%%bh%%jkq%%vz%%f7%%4c50t%%u1w8%%(cdf9)%%@6tc%%
这里部分用变量设置变量名称,部分作为变量内容,结果: