WIN服务器安全批处理文件

很文博客hinvn.com 服务器评论645字数 6397阅读模式
广告也精彩

WIN服务器安全批处理文件

这个的确不错,指量设置,免去手动设置的繁琐文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/12061.html

  1. echo.
  2. echo ------------------------------------------------------
  3. echo.
  4. echo ...........
  5. echo.
  6. net share c$ /delete
  7. net share d$ /delete
  8. net share e$ /delete
  9. net share f$ /delete
  10. net share admin$ /delete
  11. net share ipc$ /delete
  12. net stop server
  13. net stop lanmanworkstation
  14. regsvr32/u C:\WINNT\System32\wshom.ocx
  15. regsvr32/u C:\WINNT\system32\shell32.dll
  16. regsvr32/u C:\WINNT\system32\shell.dll
  17. cacls c:\WINNT\system32\shell32.dll /g administrators:f system:f
  18. cacls c:\WINNT\system32\shell.dll /g administrators:f system:f
  19. cacls c:\ /g administrators:f system:f
  20. cacls d:\ /g administrators:f system:f
  21. echo.
  22. echo ..........
  23. echo.
  24. echo ------------------------------------------------------
  25. echo.
  26. echo .................
  27. echo.
  28. echo .. delshare.reg .......
  29. echo Windows Registry Editor Version 5.00> c:\delshare.reg
  30. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]>> c:\delshare.reg
  31. echo "AutoShareWks"=dword:00000000>> c:\delshare.reg
  32. echo "AutoShareServer"=dword:00000000>> c:\delshare.reg
  33. echo .. delshare.reg .....
  34. regedit /s c:\delshare.reg
  35. echo .. delshare.reg ....
  36. del c:\delshare.reg
  37. echo .
  38. echo ........
  39. echo .
  40. echo =========================================================
  41. echo .
  42. echo .....................dos....
  43. echo .
  44. echo .........
  45. echo Windows Registry Editor Version 5.00> c:\dosforwin.reg
  46. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]>> c:\dosforwin.reg
  47. echo "EnableICMPRedirect"=dword:00000000>> c:\dosforwin.reg
  48. echo "DeadGWDetectDefault"=dword:00000001>> c:\dosforwin.reg
  49. echo "DontAddDefaultGatewayDefault"=dword:00000000>> c:\dosforwin.reg
  50. echo "EnableSecurityFilters"=dword:00000000">> c:\dosforwin.reg
  51. echo "AllowUnqualifiedQuery"=dword:00000000>> c:\dosforwin.reg
  52. echo "PrioritizeRecordData"=dword:00000001>> c:\dosforwin.reg
  53. echo "ReservedPorts"=hex(7):31,00,34,00,33,00,33,00,2d,00,31,00,34,00,33,00,34,00,\>> c:\dosforwin.reg
  54. echo 00,00,00,00>> c:\dosforwin.reg
  55. echo "SynAttackProtect"=dword:00000002>> c:\dosforwin.reg
  56. echo "EnablePMTUDiscovery"=dword:00000000>> c:\dosforwin.reg
  57. echo "NoNameReleaseOnDemand"=dword:00000001>> c:\dosforwin.reg
  58. echo "EnableDeadGWDetect"=dword:00000000>> c:\dosforwin.reg
  59. echo "KeepAliveTime"=dword:00300000>> c:\dosforwin.reg
  60. echo "PerformRouterDiscovery"=dword:00000000>> c:\dosforwin.reg
  61. echo "EnableICMPRedirects"=dword:00000000>> c:\dosforwin.reg
  62. echo .
  63. echo ==========================================================
  64. echo .. dosforwin.reg .....
  65. regedit /s c:\dosforwin.reg
  66. echo .. dosforwin.reg ....
  67. del c:\dosforwin.reg
  68. echo ==============================================================
  69. echo .
  70. echo ..........(......................).
  71. echo .
  72. echo ..telnet,......telnet.
  73. echo ..........
  74. echo Windows Registry Editor Version 5.00> c:\telnet.reg
  75. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TlntSvr]>> c:\telnet.reg
  76. echo "Start"=dword:00000004>> c:\telnet.reg
  77. echo .
  78. echo .. telnet.reg .....
  79. regedit /s c:\telnet.reg
  80. echo .
  81. echo .. telnet.reg ....
  82. del c:\telnet.reg
  83. echo .
  84. echo ===============================================================
  85. echo ..Remote Registry Service...........
  86. echo .........
  87. echo .
  88. echo Windows Registry Editor Version 5.00> c:\regedit.reg
  89. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]>> c:\regedit.reg
  90. echo "Start"=dword:00000004>> c:\regedit.reg
  91. echo .
  92. echo .. regedit.reg .....
  93. regedit /s c:\regedit.reg
  94. echo .
  95. echo ......
  96. del c:\regedit.reg
  97. echo ===============================================================
  98. echo ..Messenger.......
  99. echo .........
  100. echo Windows Registry Editor Version 5.00> c:\message.reg
  101. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Messenger]>> c:\message.reg
  102. echo "Start"=dword:00000004>> c:\message.reg
  103. echo .
  104. echo .. message.reg .....
  105. regedit /s c:\message.reg
  106. echo .
  107. echo .. message.reg
  108. del c:\message.reg
  109. echo ===============================================================
  110. echo ..lanmanworkstation.......
  111. echo .........
  112. echo Windows Registry Editor Version 5.00> c:\lanmanworkstation.reg
  113. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation]>> c:\lanmanworkstation.reg
  114. echo "Start"=dword:00000004>> c:\lanmanworkstation.reg
  115. echo .
  116. echo .. lanmanworkstation.reg .....
  117. regedit /s c:\lanmanworkstation.reg
  118. echo .
  119. echo .. lanmanworkstation.reg
  120. del c:\lanmanworkstation.reg
  121. echo ===============================================================
  122. echo ..lanmanserver.......
  123. echo .........
  124. echo Windows Registry Editor Version 5.00> c:\lanmanserver.reg
  125. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver]>> c:\lanmanserver.reg
  126. echo "Start"=dword:00000004>> c:\lanmanserver.reg
  127. echo .
  128. echo .. lanmanserver.reg .....
  129. regedit /s c:\lanmanserver.reg
  130. echo .
  131. echo .. lanmanserver.reg
  132. del c:\lanmanserver.reg
  133. echo ===============================================================
  134. echo ..Alerter.......
  135. echo .........
  136. echo Windows Registry Editor Version 5.00> c:\Alerter.reg
  137. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Alerter]>> c:\Alerter.reg
  138. echo "Start"=dword:00000004>> c:\Alerter.reg
  139. echo .
  140. echo .. Alerter.reg .....
  141. regedit /s c:\Alerter.reg
  142. echo .
  143. echo .. Alerter.reg
  144. del c:\Alerter.reg
  145. echo ===============================================================
  146. echo ..Browser.......
  147. echo .........
  148. echo Windows Registry Editor Version 5.00> c:\Browser.reg
  149. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser]>> c:\Browser.reg
  150. echo "Start"=dword:00000004>> c:\Browser.reg
  151. echo .
  152. echo .. Browser.reg .....
  153. regedit /s c:\Browser.reg
  154. echo .
  155. echo .. Browser.reg
  156. del c:\Browser.reg
  157. echo ===============================================================
  158. echo ..Dfs.......
  159. echo .........
  160. echo Windows Registry Editor Version 5.00> c:\Dfs.reg
  161. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dfs]>> c:\Dfs.reg
  162. echo "Start"=dword:00000004>> c:\Dfs.reg
  163. echo .
  164. echo .. Dfs.reg .....
  165. regedit /s c:\Dfs.reg
  166. echo .
  167. echo .. Dfs.reg
  168. del c:\Dfs.reg
  169. echo ===============================================================
  170. echo ..Spooler.......
  171. echo .........
  172. echo Windows Registry Editor Version 5.00> c:\Spooler.reg
  173. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler]>> c:\Spooler.reg
  174. echo "Start"=dword:00000004>> c:\Spooler.reg
  175. echo .
  176. echo .. Spooler.reg .....
  177. regedit /s c:\Spooler.reg
  178. echo .
  179. echo .. Spooler.reg
  180. del c:\Spooler.reg
  181. echo ==============================================================
  182. echo ...TCP/IP NetBIOS Helper Service
  183. echo .........
  184. echo Windows Registry Editor Version 5.00> c:\netbios.reg
  185. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LmHosts]>> c:\netbios.reg
  186. echo "Start"=dword:00000004>> c:\netbios.reg
  187. echo .
  188. echo .. netbios.reg .....
  189. regedit /s c:\netbios.reg
  190. echo .
  191. echo .. netbios.reg
  192. del c:\netbios.reg
  193. echo ===============================================================
  194. echo ===============================================================
  195. echo powered by zgsj.com
  196. echo web@zgsj.com
  197. goto :END
文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/12061.html文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/12061.html

工具:作品在线观看

女优:最新作品观看

中文:国语在线观看

weinxin
我的微信
扫一扫更精彩
大家的支持是我更新的动力!!!
 
  • 批处理文件
  • 服务器安全
广告也精彩
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证