找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 28|回复: 0

局域网共享BAT

[复制链接]
发表于 2025-5-27 08:27:25 | 显示全部楼层 |阅读模式
  1. cd /d %~dp0
  2. @echo off
  3. color 2f
  4. mode con cols=50 lines=30
  5. title Bulid 15.8.11   by:ALKKT
  6. :sc_top
  7. cls
  8. rd /s /q %temp%\okshare>nul 2>nul
  9. md %temp%\okshare
  10. ver | findstr "5.1">nul && goto sc_menu
  11. ver | findstr "6.">nul && echo nt6>%temp%\okshare\nt6.txt && goto sc_menu
  12. ver | findstr "10.">nul && goto sc_menu
  13. ver | findstr "5.2">nul && echo 2k3>%temp%\okshare\2k3.txt && goto sc_menu
  14. echo.&echo.&echo.&echo.&echo.&echo.&echo.
  15. ver
  16. echo.
  17. echo --------------------------------------------
  18. echo.&echo.&echo.&echo.
  19. echo          软件不支持该系统,请反馈作者!
  20. pause>nul 2>nul
  21. exit
  22. :sc_menu
  23. echo.&echo.&echo.
  24. echo                 局域网共享一键修复
  25. echo.
  26. echo    --------------------------------------------
  27. echo.&echo.&echo.
  28. echo                1、查看本机信息
  29. echo.
  30. echo                2、一键修复(推荐)
  31. echo.
  32. echo                3、手动高级修复
  33. echo.
  34. echo                4、实用工具箱
  35. echo.
  36. echo                5、软件更新、反馈
  37. echo.
  38. echo                6、退  出
  39. echo.&echo.&echo.&echo.&echo.&echo.
  40. set select=
  41. set str1=123456
  42. set /p select= 输入数字,按回车:
  43. if not defined select goto sc_wrong
  44. echo %select%|findstr "[%str1%]">nul||goto sc_wrong
  45. if %select%==1 (goto sc_info)
  46. if %select%==2 (goto sc_zd)
  47. if %select%==3 (goto sc_sd)
  48. if %select%==4 (goto sc_tools)
  49. if %select%==5 (goto sc_update)
  50. if %select%==6 (goto sc_exit)
  51. :sc_wrong
  52. echo msgbox "只能输入数字 1-6",,"提 示" >%temp%\okshare\404.vbs
  53. start /w %temp%\okshare\404.vbs
  54. goto sc_top
  55. :sc_info
  56. cls
  57. echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
  58. echo                  正在检索信息....
  59. if exist %temp%\okshare\nt6.txt goto sc_nt6
  60. :sc_nt5
  61. echo.>>%temp%\okshare\info.txt
  62. echo.>>%temp%\okshare\info.txt
  63. ping www.baidu.com -n 1 >nul || goto sc_offline5
  64. echo              当前网络状态:      [ 在线 ]>>%temp%\okshare\info.txt & goto sc_ver_nt5
  65. :sc_offline5
  66. echo              当前网络状态:      [ 离线 ]>>%temp%\okshare\info.txt
  67. :sc_ver_nt5
  68. echo ---------------------------------------------------------->>%temp%\okshare\info.txt
  69. echo.>>%temp%\okshare\info.txt
  70. for /f "skip=1 tokens=2-4 delims=, " %%a in ('wmic os get caption') do (
  71. if exist %windir%\SysWOW64 echo         系统版本:       %%a %%b %%c  64位>>%temp%\okshare\info.txt & goto sc_ver_nt5_next
  72. echo         系统版本:       %%a %%b %%c  32位>>%temp%\okshare\info.txt
  73. )
  74. :sc_ver_nt5_next
  75. echo.>>%temp%\okshare\info.txt
  76. echo         计算机名:            %COMPUTERNAME%>>%temp%\okshare\info.txt
  77. echo.>>%temp%\okshare\info.txt
  78. for /f "tokens=2 delims= " %%a in ('net config workstation^|findstr /c:"工作站域"') do echo         工作组:              %%a>>%temp%\okshare\info.txt & goto sc_info_nt5
  79. :sc_info_nt5
  80. echo.>>%temp%\okshare\info.txt
  81. echo         当前用户:            %USERNAME%>>%temp%\okshare\info.txt
  82. echo.>>%temp%\okshare\info.txt
  83. for /f "delims=" %%a in ('date /t') do echo         本机日期:            %%a>>%temp%\okshare\info.txt
  84. echo.>>%temp%\okshare\info.txt
  85. for /f "delims=" %%a in ('time /t') do echo         本机时间:            %%a>>%temp%\okshare\info.txt
  86. echo ---------------------------------------------------------->>%temp%\okshare\info.txt
  87. goto sc_info_more
  88. :sc_nt6
  89. echo.>>%temp%\okshare\info.txt
  90. echo.>>%temp%\okshare\info.txt
  91. ping www.baidu.com -n 1 >nul || goto sc_offline6
  92. echo          当前网络状态:     [ 在线 ]>>%temp%\okshare\info.txt & goto sc_ver_nt6
  93. :sc_offline6
  94. echo          当前网络状态:     [ 离线 ]>>%temp%\okshare\info.txt
  95. :sc_ver_nt6
  96. echo -------------------------------------------------->>%temp%\okshare\info.txt
  97. echo.>>%temp%\okshare\info.txt
  98. for /f "skip=1 tokens=2-5 delims=?, " %%a in ('wmic os get caption') do (
  99. if exist %windir%\SysWOW64 echo    系统版本:      %%a %%b %%c %%d 64位>>%temp%\okshare\info.txt & goto sc_ver_nt6_next
  100. echo    系统版本:       %%a %%b %%c %%d 32位>>%temp%\okshare\info.txt
  101. )
  102. :sc_ver_nt6_next
  103. echo.>>%temp%\okshare\info.txt
  104. echo    计算机名:            %COMPUTERNAME%>>%temp%\okshare\info.txt
  105. echo.>>%temp%\okshare\info.txt
  106. for /f "tokens=2 delims= " %%a in ('net config workstation^|findstr /c:"工作站域"') do echo    工作组:              %%a>>%temp%\okshare\info.txt
  107. echo.>>%temp%\okshare\info.txt
  108. echo    当前用户:            %USERNAME%>>%temp%\okshare\info.txt
  109. echo.>>%temp%\okshare\info.txt
  110. for /f "delims=" %%a in ('date /t') do echo    本机日期:            %%a>>%temp%\okshare\info.txt
  111. echo.>>%temp%\okshare\info.txt
  112. for /f "delims=" %%a in ('time /t') do echo    本机时间:            %%a>>%temp%\okshare\info.txt
  113. echo -------------------------------------------------->>%temp%\okshare\info.txt
  114. :sc_info_more
  115. ipconfig /all>%temp%\okshare\temp.txt
  116. if exist %temp%\okshare\nt6.txt findstr /v /c:"Windows IP 配置" %temp%\okshare\temp.txt|findstr /v /c:"主机名"|findstr /v /c:"主 DNS 后缀"|findstr /v /c:"节点类型"|findstr /v /c:"IP 路由已启用"|findstr /v /c:"WINS 代理已启用">>%temp%\okshare\info.txt & goto sc_info_more2
  117. findstr /v /c:"Windows IP Configuration" %temp%\okshare\temp.txt|findstr /v /c:"Host Name"|findstr /v /c:"Primary Dns Suffix"|findstr /v /c:"Node Type"|findstr /v /c:"IP Routing Enabled"|findstr /v /c:"WINS Proxy Enabled">>%temp%\okshare\info.txt
  118. :sc_info_more2
  119. findstr /i "隧道 teredo" %temp%\okshare\temp.txt>nul||goto sc_info_next
  120. echo.>>%temp%\okshare\info.txt
  121. echo.>>%temp%\okshare\info.txt
  122. echo --------------------------------------------------------------->>%temp%\okshare\info.txt
  123. echo 【注意】:过多的隧道适配器会拖慢系统速度,不用时建议关闭!>>%temp%\okshare\info.txt
  124. echo 【方法】:主菜单/实用工具箱/关闭隧道适配器,需要时再开启。>>%temp%\okshare\info.txt
  125. :sc_info_next
  126. start /w notepad %temp%\okshare\info.txt
  127. goto sc_top
  128. :sc_zd
  129. cls
  130. echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
  131. echo                    正在修复....
  132. goto sc_main
  133. :sc_sd
  134. cls
  135. echo.&echo.&echo.
  136. echo           【如果一键修复未解决,再尝试】
  137. echo.
  138. echo     ------------------------------------------
  139. echo.&echo.&echo.
  140. echo           1、修复共享文件夹无法被访问
  141. echo.&echo.
  142. echo           2、修复网络连接属性无法打开
  143. echo.&echo.
  144. echo           3、返回主菜单
  145. echo.&echo.
  146. echo           4、退  出
  147. echo.&echo.&echo.&echo.&echo.&echo.
  148. set input=
  149. set var=1234
  150. set /p input= 输入数字,按回车:
  151. if not defined input goto sc_wrong_sd
  152. echo %input%|findstr "[%var%]">nul||goto sc_wrong_sd
  153. if %input%==1 (goto sc_sd_wjj)
  154. if %input%==2 (goto sc_sd_reg)
  155. if %input%==3 (goto sc_top)
  156. if %input%==4 (goto sc_exit)
  157. :sc_wrong_sd
  158. echo msgbox "只能输入数字 1-4",,"提 示" >%temp%\okshare\404.vbs
  159. start /w %temp%\okshare\404.vbs
  160. goto sc_sd
  161. :sc_sd_wjj
  162. cls
  163. echo.&echo.&echo.&echo.
  164. set lj=
  165. echo 粘贴文件夹路径(有空格加英文引号),按回车:
  166. set /p lj=
  167. if not defined lj goto sc_sd_wjj_wrong
  168. echo.&echo.&echo.&echo.
  169. echo 任意输入共享名称,按回车:
  170. set /p name=
  171. if not defined name goto sc_sd_wjj_wrong
  172. net share %name%=%lj%>nul 2>nul
  173. cacls %lj% /p everyone:r /e>nul 2>nul
  174. cls
  175. echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
  176. echo                    正在修复....
  177. goto sc_tip
  178. :sc_sd_wjj_wrong
  179. echo msgbox "输入不能为空",,"提 示" >%temp%\okshare\404.vbs
  180. start /w %temp%\okshare\404.vbs
  181. del /q %temp%\okshare\404.vbs>nul 2>nul
  182. goto sc_sd_wjj
  183. :sc_sd_reg
  184. cls
  185. echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
  186. echo                    正在修复....
  187. start /w regsvr32 /s atl.dll>nul 2>nul
  188. start /w regsvr32 /s Netcfgx.dll>nul 2>nul
  189. start /w regsvr32 /s netshell.dll>nul 2>nul
  190. start /w regsvr32 /s Netman.dll>nul 2>nul
  191. goto sc_tip
  192. :sc_main
  193. echo Windows Registry Editor Version 5.00>>%temp%\okshare\okshare.reg
  194. echo.&echo.>>%temp%\okshare\okshare.reg
  195. sc config LanmanWorkstation start= auto>nul 2>nul
  196. sc config LanmanServer start= auto>nul 2>nul
  197. sc config Winmgmt start= auto>nul 2>nul
  198. sc config RpcSs start= auto>nul 2>nul
  199. sc config Netman start= auto>nul 2>nul
  200. sc config RasMan start= demand>nul 2>nul
  201. sc config SSDPSRV start= auto>nul 2>nul
  202. sc config BFE start= auto>nul 2>nul
  203. sc config ALG start= demand>nul 2>nul
  204. sc config SharedAccess start= auto>nul 2>nul
  205. net start SharedAccess /y>nul 2>nul
  206. sc config Browser start= auto>nul 2>nul
  207. net start Browser /y>nul 2>nul
  208. sc config Dnscache start= auto>nul 2>nul
  209. net start Dnscache /y>nul 2>nul
  210. sc config Dhcp start= auto>nul 2>nul
  211. net start Dhcp /y>nul 2>nul
  212. sc config lmhosts start= auto>nul 2>nul
  213. net start lmhosts /y>nul 2>nul
  214. sc config Spooler start= auto>nul 2>nul
  215. net start Spooler /y>nul 2>nul
  216. sc config upnphost start= demand>nul 2>nul
  217. net start upnphost /y>nul 2>nul
  218. sc config Netlogon start= demand>nul 2>nul
  219. net start Netlogon /y>nul 2>nul
  220. if exist %temp%\okshare\nt6.txt goto sc_win7
  221. :sc_winxp
  222. sc config PlugPlay start= auto>nul 2>nul
  223. sc config TapiSrv start= auto>nul 2>nul
  224. sc config Nla start= auto>nul 2>nul
  225. net start Nla /y>nul 2>nul
  226. netsh firewall set opmode mode=disable>nul 2>nul
  227. if exist %temp%\okshare\2k3.txt goto sc_main2_2k3
  228. goto sc_main2_etc
  229. :sc_win7
  230. sc config DcomLaunch start= auto>nul 2>nul
  231. sc config RpcEptMapper start= auto>nul 2>nul
  232. sc config SamSs start= auto>nul 2>nul
  233. sc config nsi start= auto>nul 2>nul
  234. sc config SstpSvc start= demand>nul 2>nul
  235. sc config MpsSvc start= auto>nul 2>nul
  236. net start MpsSvc /y>nul 2>nul
  237. sc config NlaSvc start= auto>nul 2>nul
  238. sc config netprofm start= auto>nul 2>nul
  239. sc config fdPHost start= auto>nul 2>nul
  240. sc config FDResPub start= auto>nul 2>nul
  241. sc config HomeGroupListener start= auto>nul 2>nul
  242. sc config WMPNetworkSvc start= auto>nul 2>nul
  243. net start WMPNetworkSvc /y>nul 2>nul
  244. sc config HomeGroupProvider start= auto>nul 2>nul
  245. net start HomeGroupProvider /y>nul 2>nul
  246. netsh advfirewall set allprofiles state off>nul 2>nul
  247. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0]>>%temp%\okshare\okshare.reg
  248. echo "NtlmMinClientSec"=dword:00000000>>%temp%\okshare\okshare.reg
  249. echo "NtlmMinServerSec"=dword:00000000>>%temp%\okshare\okshare.reg
  250. echo "LmCompatibilityLevel"=dword:00000001>>%temp%\okshare\okshare.reg
  251. echo.&echo.>>%temp%\okshare\okshare.reg
  252. goto sc_main2_etc
  253. :sc_main2_2k3
  254. net user guest /active:no>nul 2>nul
  255. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]>>%temp%\okshare\okshare.reg
  256. echo "forceguest"=dword:00000000>>%temp%\okshare\okshare.reg
  257. echo "restrictanonymoussam"=dword:00000001>>%temp%\okshare\okshare.reg
  258. goto sc_main2
  259. :sc_main2_etc
  260. net user guest /active:yes>nul 2>nul
  261. echo [Unicode]>>%temp%\okshare\admin_sec.inf
  262. echo Unicode=yes>>%temp%\okshare\admin_sec.inf
  263. echo [Version]>>%temp%\okshare\admin_sec.inf
  264. echo signature="$CHICAGO$">>%temp%\okshare\admin_sec.inf
  265. echo Revision=1>>%temp%\okshare\admin_sec.inf
  266. echo [Privilege Rights]>>%temp%\okshare\admin_sec.inf
  267. echo sedenynetworklogonright = >>%temp%\okshare\admin_sec.inf
  268. echo senetworklogonright = Everyone,Administrators,Users,Power Users,Backup Operators,guest>>%temp%\okshare\admin_sec.inf
  269. secedit /configure /db %temp%\okshare\admin_sec.sdb /cfg %temp%\okshare\admin_sec.inf /log %temp%\okshare\admin_sec.log /quiet
  270. del /q %temp%\okshare\admin_sec.*>nul 2>nul
  271. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]>>%temp%\okshare\okshare.reg
  272. echo "forceguest"=dword:00000001>>%temp%\okshare\okshare.reg
  273. echo "limitblankpassworduse"=dword:00000000>>%temp%\okshare\okshare.reg
  274. echo "restrictanonymous"=dword:00000000>>%temp%\okshare\okshare.reg
  275. echo "restrictanonymoussam"=dword:00000000>>%temp%\okshare\okshare.reg
  276. echo "everyoneincludesanonymous"=dword:00000001>>%temp%\okshare\okshare.reg
  277. echo "NoLmHash"=dword:00000000>>%temp%\okshare\okshare.reg
  278. echo.&echo.>>%temp%\okshare\okshare.reg
  279. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters]>>%temp%\okshare\okshare.reg
  280. echo "AutoShareServer"=dword:00000000>>%temp%\okshare\okshare.reg
  281. echo "AutoShareWks"=dword:00000000>>%temp%\okshare\okshare.reg
  282. echo "restrictnullsessaccess"=dword:00000000>>%temp%\okshare\okshare.reg
  283. echo.&echo.>>%temp%\okshare\okshare.reg
  284. :sc_main2
  285. net use * /del /y>nul 2>nul
  286. net config server /hidden:no>nul 2>nul
  287. net share ipc$>nul 2>nul
  288. echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]>>%temp%\okshare\okshare.reg
  289. echo.&echo.>>%temp%\okshare\okshare.reg
  290. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters]>>%temp%\okshare\okshare.reg
  291. echo "MaintainServerList"="Auto">>%temp%\okshare\okshare.reg
  292. echo "IsDomainMaster"="FALSE">>%temp%\okshare\okshare.reg
  293. echo.&echo.>>%temp%\okshare\okshare.reg
  294. regedit /s %temp%\okshare\okshare.reg
  295. goto sc_tip
  296. :sc_tools
  297. cls
  298. del /q %temp%\okshare\*.* >nul 2>nul
  299. echo.&echo.&echo.
  300. echo                     实用工具箱
  301. echo.
  302. echo    --------------------------------------------
  303. echo.&echo.&echo.
  304. echo                1、关闭隧道适配器
  305. echo.
  306. echo                2、开启隧道适配器
  307. echo.
  308. echo                3、校准系统时间
  309. echo.
  310. echo                4、加固系统安全
  311. echo.
  312. echo                5、返回主菜单
  313. echo.
  314. echo                6、退  出
  315. echo.&echo.&echo.&echo.&echo.&echo.
  316. set num=
  317. set str2=123456
  318. set/p num= 输入数字,按回车:
  319. if not defined num goto sc_tools_wrong
  320. echo %num%|findstr "[%str2%]">nul||goto sc_tools_wrong
  321. if %num%==1 (goto sc_shut)
  322. if %num%==2 (goto sc_open)
  323. if %num%==3 (goto sc_time)
  324. if %num%==4 (goto sc_jg)
  325. if %num%==5 (goto sc_top)
  326. if %num%==6 (goto sc_exit)
  327. :sc_tools_wrong
  328. echo msgbox "只能输入数字 1-6",,"提 示" >%temp%\okshare\404.vbs
  329. start /w %temp%\okshare\404.vbs
  330. goto sc_tools
  331. :sc_shut
  332. ipconfig >%temp%\okshare\temp.txt
  333. findstr /i "隧道 teredo 通道" %temp%\okshare\temp.txt>nul||echo msgbox "未发现隧道适配器!",,"提 示">%temp%\okshare\404.vbs && goto sc_teredo_tip
  334. if exist %windir%\SysWOW64 devcon64 disable *isatap>>%temp%\okshare\teredo.txt & devcon64 disable *6to4*>>%temp%\okshare\teredo.txt & devcon64 disable *teredo>>%temp%\okshare\teredo.txt & devcon64 disable *tunmp>>%temp%\okshare\teredo.txt & goto sc_shut_next
  335. devcon32 disable *isatap>>%temp%\okshare\teredo.txt
  336. devcon32 disable *6to4*>>%temp%\okshare\teredo.txt
  337. devcon32 disable *teredo>>%temp%\okshare\teredo.txt
  338. devcon32 disable *tunmp>>%temp%\okshare\teredo.txt
  339. :sc_shut_next
  340. echo msgbox "关闭成功!",,"提 示" >%temp%\okshare\404.vbs
  341. goto sc_teredo_tip
  342. :sc_open
  343. if exist %windir%\SysWOW64 devcon64 enable *isatap>>%temp%\okshare\teredo.txt & devcon64 enable *6to4*>>%temp%\okshare\teredo.txt & devcon64 enable *teredo>>%temp%\okshare\teredo.txt & devcon64 enable *tunmp>>%temp%\okshare\teredo.txt & goto sc_open_next
  344. devcon32 enable *isatap>>%temp%\okshare\teredo.txt
  345. devcon32 enable *6to4*>>%temp%\okshare\teredo.txt
  346. devcon32 enable *teredo>>%temp%\okshare\teredo.txt
  347. devcon32 enable *tunmp>>%temp%\okshare\teredo.txt
  348. :sc_open_next
  349. findstr /c:"device(s) are enabled" %temp%\okshare\teredo.txt>nul||echo msgbox "未发现隧道适配器!",,"提 示" >%temp%\okshare\404.vbs && goto sc_teredo_tip
  350. echo msgbox "开启成功!",,"提 示" >%temp%\okshare\404.vbs
  351. :sc_teredo_tip
  352. start /w %temp%\okshare\404.vbs
  353. goto sc_tools
  354. :sc_time
  355. cls
  356. Timedate.cpl
  357. goto sc_tools
  358. :sc_jg
  359. cls
  360. echo.&echo.&echo.&echo.
  361. echo           ===  目前支持加固以下内容  ===
  362. echo.&echo.
  363. echo                 关闭计算机所有共享;
  364. echo.
  365. echo                 禁用Guest来宾用户;
  366. echo.
  367. echo                 关闭远程桌面和协助;
  368. echo.
  369. echo                 禁止空密码远程登录;
  370. echo.
  371. echo                 开启Windows防火墙;
  372. echo.
  373. echo                 禁用远程注册表服务;
  374. echo.
  375. echo     ------------------------------------------
  376. echo.&echo.&echo.&echo.
  377. echo            输入 y 开始    输入 n 返回
  378. set ch=
  379. set str3=yn
  380. set/p ch=
  381. if not defined ch goto sc_wrong_jg
  382. echo %ch%|findstr "[%str3%]">nul||goto sc_wrong_jg
  383. if %ch%==y (goto sc_safe)
  384. if %ch%==n (goto sc_tools)
  385. :sc_wrong_jg
  386. echo msgbox "只能输入 y 或 n ",,"提 示" >%temp%\okshare\404.vbs
  387. start /w %temp%\okshare\404.vbs
  388. del /q %temp%\okshare\404.vbs>nul 2>nul
  389. goto sc_jg
  390. :sc_safe
  391. cls
  392. echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
  393. echo                    正在加固....
  394. echo Windows Registry Editor Version 5.00>>%temp%\okshare\okshare.reg
  395. echo.&echo.>>%temp%\okshare\okshare.reg
  396. ver|find "6.">nul&&goto sc_7fw
  397. netsh firewall set opmode mode=enable>nul 2>nul
  398. sc config dfs start= disabled>nul 2>nul
  399. net stop dfs /y>nul 2>nul
  400. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>%temp%\okshare\okshare.reg
  401. echo "fAllowToGetHelp"=dword:00000000>>%temp%\okshare\okshare.reg
  402. echo.&echo.>>%temp%\okshare\okshare.reg
  403. goto sc_jg2
  404. :sc_7fw
  405. netsh advfirewall set allprofiles state on>nul 2>nul
  406. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Remote Assistance]>>%temp%\okshare\okshare.reg
  407. echo "fAllowToGetHelp"=dword:00000000>>%temp%\okshare\okshare.reg
  408. echo.&echo.>>%temp%\okshare\okshare.reg
  409. :sc_jg2
  410. sc config RemoteRegistry start= disabled>nul 2>nul
  411. net stop RemoteRegistry /y>nul 2>nul
  412. net user guest /active:no>nul 2>nul
  413. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters]>>%temp%\okshare\okshare.reg
  414. echo "AutoShareServer"=dword:00000000>>%temp%\okshare\okshare.reg
  415. echo "AutoShareWks"=dword:00000000>>%temp%\okshare\okshare.reg
  416. echo "restrictnullsessaccess"=dword:00000001>>%temp%\okshare\okshare.reg
  417. echo.&echo.>>%temp%\okshare\okshare.reg
  418. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]>>%temp%\okshare\okshare.reg
  419. echo "limitblankpassworduse"=dword:00000001>>%temp%\okshare\okshare.reg
  420. echo.&echo.>>%temp%\okshare\okshare.reg
  421. echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>%temp%\okshare\okshare.reg
  422. echo "fDenyTSConnections"=dword:00000001>>%temp%\okshare\okshare.reg
  423. echo.&echo.>>%temp%\okshare\okshare.reg
  424. regedit /s %temp%\okshare\okshare.reg>nul 2>nul
  425. :sc_tip
  426. echo msgbox "修复完成,请重启计算机",,"提 示" >%temp%\okshare\404.vbs
  427. start /w %temp%\okshare\404.vbs
  428. goto sc_exit
  429. :sc_update
  430. cls
  431. start "%ProgramFiles%\Internet Explorer\iexplore.exe" "http://bbs.pcbeta.com/viewthread-802430-1-1.html"
  432. goto sc_top
  433. :sc_exit
  434. rd /s /q %temp%\okshare>nul 2>nul
  435. exit

复制代码

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|奥利凯空调

GMT+8, 2026-11-30 11:28 , Processed in 0.017286 second(s), 14 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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