windows7批处理优化程序
@echo off
echo =========================
echo windows7 批处理优化程序
echo =========================
echo.
echo
reg add HKCR\lnkfile /v IsShortcut /d - /f>nul
::
reg add HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder /v Attributes /t reg_binary /d 50010020 /f>nul
reg add HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder /v CallForAttributes /t reg_dword /d 0 /f>nul
::
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Tour /v RunCount /t reg_dword /d 0 /f>nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Applets\Tour /v RunCount /t reg_dword /d 0 /f>nul
::
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Ewindows7lorer /v NoLowDiskSpaceChecks /t reg_dword /d 1 /f>nul
::
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Ewindows7lorer /v NoRecentDocsmenu /t reg_dword /d 1 /f>nul
::
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Ewindows7lorer\Advanced\Folder\Hidden\SHOWALL /v Checkedvalue /t reg_dword /d 0 /f>nul
::
reg ewindows7ort HKLM\Software\Microsoft\Windows\CurrentVersion\ewindows7lorer\Advanced c:\yang.reg>nul
reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\ewindows7lorer\Advanced /f>nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\ewindows7lorer\Advanced\chenhui /v Bitmap /d %SystemRoot%\system32\SHELL32.dll,4 /f>nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\ewindows7lorer\Advanced\chenhui /v Text /d 警告 /f>nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\ewindows7lorer\Advanced\chenhui /v Type /d group /f>nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\ewindows7lorer\Advanced\chenhui\warning /v Checkedvalue /d "" /f>nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\ewindows7lorer\Advanced\chenhui\warning /v Defaultvalue /d "" /f>nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\ewindows7lorer\Advanced\chenhui\warning /v Text /d 这项功能已被管理员禁止了!! /f>nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\ewindows7lorer\Advanced\chenhui\warning /v Type /d group /f>nul
::
reg ewindows7ort "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SO" c:\chen.reg>nul
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SO" /f>nul
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SO\chenhui" /v Bitmap /d C:\WINDOWS\system32\inetcpl.cpl,1321 /f>nul
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SO\chenhui" /v Text /d 警告!! /f>nul
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SO\chenhui" /v Type /d group /f>nul
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SO\chenhui\warning" /v Bitmap /d C:\WINDOWS\system32\inetcpl.cpl,1321 /f>nul
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SO\chenhui\warning" /v Text /d 这项功能已被管理员禁止了!! /f>nul
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SO\chenhui\warning" /v Type /d group /f>nul
::
reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v MinAnimate /d 1 /f>nul
::
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Ewindows7lorer /v NoSaveSettings /t reg_dword /d 0 /f>nul
::
reg add "HKLM\SYSTEM\CurrentControlSet\Services\ALG" /v Start /t REG_DWORD /d 2 /f>nul
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Nla" /v Start /t REG_DWORD /d 2 /f>nul
reg add "HKLM\SYSTEM\CurrentControlSet\Services\RasMan" /v Start /t REG_DWORD /d 2 /f>nul
reg add "HKLM\SYSTEM\CurrentControlSet\Services\TapiSrv" /v Start /t REG_DWORD /d 4 /f>nul
::
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ewindows7lorer /v Locktaskbar /t reg_dword /d 1 /f>nul
::
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Ewindows7lorer\Advanced /v taskbarGlomming /t reg_dword /d 0 /f>nul
::
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ewindows7lorer /v NoCloseDragDropBands /d 1 /f>nul
::
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ewindows7lorer /v NoAutoTrayNotify /t reg_dword /d 1 /f>nul
::
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Ewindows7lorer\Advanced /v EnableBalloonTips /t reg_dword /d 0 /f>nul
::
::reg add add HKCU\SOFTWARE\Microsoft\Windows\NetCache\AssignedOfflineFolders /v NoReminders /t reg_dword /d 1 /f>nul
::
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Ewindows7lorer\Cabinetstate /v UseSearchAsst /d No /f>nul
::
reg add "HKEY_USERS\.DEFAULT\Control Panel\Desktop" /v FontSmoothingType /d 2 /f>nul
reg add "HKEY_USERS\.DEFAULT\Control Panel\Desktop" /v FontSmoothing /d 2 /f>nul
::
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Ewindows7lorer\Shell Icons" /v 29 /d null /f>nul
::
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Ewindows7lorer\MyComputer\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /f>nul
::
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Ewindows7lorer /v link /t reg_binary /d 00000000 /f>nul
::
reg add HKLM\system\CurrentControlSet\Control\CrashControl /v Autoreboot /t reg_dword /d 1 /f>nul
::
reg add HKCR\Paint.Picture\DefaultIcon /v "" /d %%1 /f>nul
::
reg add "HKEY_USERS\.DEFAULT\Control Panel\Desktop" /v screemSaveActive /t reg_dword /d 1 /f>nul
::
reg add "HKLM\system\CurrentControlSet\Control\Session Manager\Memory Management" /v DisablePagingExecutive /t reg_dword /d 1 /f>nul
::
reg add "HKEY_USERS\.DEFAULT\Control Panel\Desktop" /v WaitToKillAppTimeout /d 2000 /f>nul
::
reg delete HKCR\CLSID\{87D62D94-71B3-4b9a-9489-5FE6850DC73E} /f>nul
reg add HKCR\CLSID\-{87D62D94-71B3-4b9a-9489-5FE6850DC73E} /f>nul
::
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\systemrestore" /v DisableConfig /t reg_dword /d 1 /f>nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\systemrestore" /v DisableSR /t reg_dword /d 1 /f>nul
::
reg add "HKCU\Control Panel\Desktop" /v HungAppTimeout /d 3000 /f>nul
::
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Tour /v RunCout /t reg_dword /d 1 /f>nul
echo 127.0.0.1
http://www.3721.net/ >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 3721.com >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 3721.net >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 cnsmin.3721.com >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 cnsmin.3721.net >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 download.3721.com >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 download.3721.net >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1
www.3721.com >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1
www.3721.net >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 bar.baidu.com >> %systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1
www.unionsky.cn >> %systemroot%\system32\drivers\etc\hosts
:end