批处理设置windows服务器的代码ThecSafe1.9.4第1/3页
作者 佚名
来源 批处理
浏览
发布时间 2013-07-09
有计算机用户。 @REM建议:禁用 scconfiglanmanworkstationstart=DISABLED scstoplanmanworkstation @REMHelpandSupport @REM启用在此计算机上运行帮助和支持中心。如果停止服务,帮助和支持中心将不可用。如果禁用服务,任何直接依赖于此服务的服务将无法启动。 @REM建议:禁用 scconfighelpsvcstart=DISABLED scstophelpsvc Echo系统服务优化设定完毕!请按任意键返回并选4继续... pause>nul Gotostart :Reg MODEcon:COLS=80LINES=18 COLOR70 Echo. Rem注册表相关设定 regdeleteHKEY_CLASSES_ROOT\WScript.Shell/f regdeleteHKEY_CLASSES_ROOT\WScript.Shell.1/f regdeleteHKEY_CLASSES_ROOT\Shell.application/f regdeleteHKEY_CLASSES_ROOT\Shell.application.1/f regdeleteHKEY_CLASSES_ROOT\WSCRIPT.NETWORK/f regdeleteHKEY_CLASSES_ROOT\WSCRIPT.NETWORK.1/f regsvr32/s/uwshom.ocx regsvr32/s/uwshext.dll regsvr32/s/ushell32.dll Echo注册表危险组件删除设定完毕!请按任意键返回并选5继续... PAUSE>nul Gotostart :Ddos MODEcon:COLS=80LINES=18 COLOR70 Echo. Rem防DDOS洪水攻击处理 regadd"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"/vNoRecentDocsMenu/tREG_BINARY/d"01000000"/f regadd"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"/vNoRecentDocsHistory/tREG_BINARY/d"01000000"/f regadd"HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon"/vDontDisplayLastUserName/tREG_SZ/d1/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa"/vrestrictanonymous/tREG_DWORD/d"00000001"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Parameters"/vAutoShareServer/tREG_DWORD/d"00000000"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Parameters"/vAutoShareWks/tREG_DWORD/d"00000000"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vEnableICMPRedirect/tREG_DWORD/d"00000000"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vKeepAliveTime/tREG_DWORD/d"0x000927c0"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vSynAttackProtect/tREG_DWORD/d"00000002"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vTcpMaxHalfOpen/tREG_DWORD/d"0x000001f4"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vTcpMaxHalfOpenRetried/tREG_DWORD/d"00000190"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vTcpMaxConnectResponseRetransmissions/tREG_DWORD/d"00000001"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vTcpMaxDataRetransmissions/tREG_DWORD/d"00000003"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vTCPMaxPortsExhausted/tREG_DWORD/d"00000005"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vDisableIPSourceRouting/tREG_DWORD/d"00000002"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/vTcpTimedWaitDelay/tREG_DWORD/d"0x0000001e"/f regadd"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Param |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于批处理设置windows服务器的代码ThecSafe1.9.4第1/3页的所有评论