查看: 5749|回复: 2
收起左侧

[其他] 贴个自用的win7优化设置bat文件和注册表设置

[复制链接]
hehetong
发表于 2011-3-10 19:21:05 | 显示全部楼层 |阅读模式
bat文件内容,可自行修改
@echo
echo 服务设置
sc config   AppIDSvc start= AUTO
sc config   BFE start= AUTO
sc config   EventSystem start= AUTO
sc config   CryptSvc start= AUTO
sc config   UxSms start= AUTO
sc config   Dhcp start= AUTO
sc config   Dnscache start= AUTO
sc config   MMCSS start= AUTO
sc config   NlaSvc start= AUTO
sc config   nsi start= AUTO
sc config   PlugPlay start= AUTO
sc config   Power start= AUTO
sc config   Spooler start= AUTO
sc config   SamSs start= AUTO
sc config   LanmanServer start= AUTO
sc config   ShellHWDetection start= AUTO
sc config   SysMain start= AUTO
sc config   SENS start= AUTO
sc config   lmhosts start= AUTO
sc config   Themes start= AUTO
sc config   ProfSvc start= AUTO
sc config   wudfsvc start= AUTO
sc config   eventlog start= AUTO
sc config   Winmgmt start= AUTO
sc config   Wlansvc start= AUTO
sc config   AeLookupSvc start= DEMAND
sc config   Appinfo start= DEMAND
sc config   AppMgmt start= DEMAND
sc config   BDESVC start= DEMAND
sc config   BITS start= DEMAND
sc config   bthserv start= DEMAND
sc config   KeyIso start= DEMAND
sc config   CertPropSvc start= DEMAND
sc config   COMSysApp start= DEMAND
sc config   EapHost start= DEMAND
sc config   EFS start= DEMAND
sc config   defragsvc start= DEMAND
sc config   clr_optimization_v2.0.50727_32 start= DEMAND
sc config   Netlogon start= DEMAND
sc config   Netman start= DEMAND
sc config   netprofm start= DEMAND
sc config   PNRPsvc start= DEMAND
sc config   p2pimsvc start= DEMAND
sc config   p2psvc start= DEMAND
sc config   WPDBusEnum start= DEMAND
sc config   wercplsupport start= DEMAND
sc config   PcaSvc start= DEMAND
sc config   ProtectedStorage start= DEMAND
sc config   QWAVE start= DEMAND
sc config   RasAuto start= DEMAND
sc config   RasMan start= DEMAND
sc config   SessionEnv start= DEMAND
sc config   TermService start= DEMAND
sc config   UmRdpService start= DEMAND
sc config   RpcLocator start= DEMAND
sc config   seclogon start= DEMAND
sc config   SstpSvc start= DEMAND
sc config   SCardSvr start= DEMAND
sc config   SCPolicySvc start= DEMAND
sc config   SNMPTRAP start= DEMAND
sc config   TabletInputService start= DEMAND
sc config   TapiSrv start= DEMAND
sc config   SDRSVC start= DEMAND
sc config   Wecsvc start= DEMAND
sc config   StiSvc start= DEMAND
sc config   msiserver start= DEMAND
sc config   ehRecvr start= DEMAND
sc config   TrustedInstaller start= DEMAND
sc config   WinRM start= DEMAND
sc config   W32Time start= DEMAND
sc config   WinHttpAutoProxySvc start= DEMAND
sc config   Fax start= DEMAND
sc config   MpsSvc start= DISABLED
sc config   BFE start= DISABLED
sc config   WerSvc start= DISABLED
sc config   ALG start= DISABLED
sc config   Browser start= DISABLED
sc config   CscService start= DISABLED
sc config   DPS start= DISABLED
sc config   WdiServiceHost start= DISABLED
sc config   WdiSystemHost start= DISABLED
sc config   TrkWks start= DISABLED
sc config   FDResPub start= DISABLED
sc config   SharedAccess start= DISABLED
sc config   iphlpsvc  start= DISABLED
sc config   MDM  start= DISABLED
sc config   Mcx2Svc start= DISABLED
sc config   NetTcpPortSharing start= DISABLED
sc config   CscService  start= DISABLED
sc config   RemoteRegistry start= DISABLED
sc config   RemoteAccess start= DISABLED
sc config   SSDPSRV start= DISABLED
sc config   upnphost start= DISABLED
sc config   WinDefend start= DISABLED
sc config   ehSched start= DISABLED
sc config   WMPNetworkSvc start= DISABLED
sc config   WSearch start= DISABLED
sc config   LanmanWorkstation start= DISABLED
sc config   WebClient start= DISABLED
sc config   IKEEXT start= DISABLED
sc config   PolicyAgent start= DISABLED
sc config   WatAdminSvc start= DISABLED

echo 删除系统预读,系统自带病毒扫描mrt
del /f /q /s "%WINDIR%\Prefetch\*.*"
del /f /q "%WINDIR%\System32\mrt.exe"


echo 注册表及hosts文件导入,需将注册表设置的两个文件ie.reg和win7.reg,以及hosts文件和此bat文件放在一个目录下
regedit /s "%~dp0\win7.reg"
regedit /s "%~dp0\ie.reg"
copy /y "%~dp0\hosts" "%WINDIR%\System32\drivers\etc"

echo 删除图标缓存
attrib -h "%UserProfile%\AppData\Local\IconCache.db"
del /f /q "%UserProfile%\AppData\Local\IconCache.db"

echo 优化设置完成,任意键退出
echo. & pause

ie.reg中主要包括自行添加的一些受限网址,用于屏蔽广告用的,对应的路径是
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains

win7.reg中只包括一些基本设置
此为设置限制使用mhtml漏洞
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_PROTOCOL_LOCKDOWN]
"explorer.exe"=dword:00000001
"iexplore.exe"=dword:00000001
"maxthon.exe"=dword:00000001
"*"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols\0]
"mhtml"="mhtml"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols\1]
"mhtml"="mhtml"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols\2]
"mhtml"="mhtml"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols\3]
"mhtml"="mhtml"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols\4]
"mhtml"="mhtml"

此为限制16位程序的运行
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WOW]
"DisallowedPolicyDefault"=dword:00000001

此为设置windows预读
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnableSuperfetch"=dword:00000003
"EnablePrefetcher"=dword:00000003

还有些个人的设置就不在列出...

一次设置好,可用于日后系统还原时使用,也可作日常清理使用,看个人喜欢自行添加
kkyy72
发表于 2011-3-11 01:33:11 | 显示全部楼层
对Win7不是很熟不敢乱改
皇影
发表于 2011-3-11 09:55:13 | 显示全部楼层
感谢分享
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-1-15 21:06 , Processed in 0.116854 second(s), 17 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表