zhuxt 发表于 2010-12-9 01:18

希望真的管用

msbeta 发表于 2010-12-9 09:05

强烈建议你直接批处理:@echo off
title 【 局域网共享一键修复 】2010.12.3    by:wnsdt
color 2f
echo.&echo.
echo                                 【 重 要 提 示 】
echo.&echo.&echo.
echo         ★★★   要想使用本程序修复共享失败请务必做到以下几点   ★★★
echo.&echo.
echo                     1、正确设置计算机的工作组和IP地址;
echo.
echo                     2、给共享文件(夹)添加everyone访问权限;
echo.
echo                     3、关闭或禁用已安装的第三方防火墙软件;
echo.
echo                     4、必须在共享双方的系统中运行本程序;
echo.
echo                     5、使用完本程序后必须重启计算机;
echo.&echo.&echo.&echo.
echo    按任意键开始修复...
echo.
pause >nul
cls
echo.&echo.&echo.&echo.&echo.&echo.
echo      正在进行修复...
echo.&echo.
echo      稍后程序自动关闭,请手动重启计算机!
copy /y browstat.exe %SystemRoot%\system32>nul 2>nul
copy /y ntrights.exe %SystemRoot%\system32>nul 2>nul
ver | find "5.1">NUL && IF errorlevel 0 goto xp
ver | find "6.1">NUL && IF errorlevel 0 goto WIN7
ver | find "6.0">NUL && IF errorlevel 0 goto WIN7
ver | find "5.2">NUL && IF errorlevel 0 goto xp
:xp
start /w /min sc config RpcSs start= auto>nul 2>nul
start /w /min net start RpcSs>nul 2>nul
start /w /min sc config lanmanworkstation start= auto>nul 2>nul
start /w /min net start lanmanworkstation>nul 2>nul
start /w /min sc config LanmanServer start= auto>nul 2>nul
start /w /min net start LanmanServer>nul 2>nul
start /w /min sc config Browser start= auto>nul 2>nul
start /w /min net start Browser>nul 2>nul
start /w /min sc config PlugPlay start= auto>nul 2>nul
start /w /min net start PlugPlay>nul 2>nul
start /w /min sc config TapiSrv start= auto>nul 2>nul
start /w /min net start TapiSrv>nul 2>nul
start /w /min sc config RasMan start= auto>nul 2>nul
start /w /min net start RasMan>nul 2>nul
start /w /min sc config Netman start= auto>nul 2>nul
start /w /min net start Netman>nul 2>nul
start /w /min sc config Dnscache start= auto>nul 2>nul
start /w /min net start Dnscache>nul 2>nul
start /w /min sc config Dhcp start= auto>nul 2>nul
start /w /min net start Dhcp>nul 2>nul
start /w /min sc config lmhosts start= auto>nul 2>nul
start /w /min net start lmhosts>nul 2>nul
start /w /min sc config Nla start= auto>nul 2>nul
start /w /min net start Nla>nul 2>nul
start /w /min sc config Spooler start= auto>nul 2>nul
start /w /min net start Spooler>nul 2>nul
start /w /min sc config SSDPSRV start= auto>nul 2>nul
start /w /min net start SSDPSRV>nul 2>nul
start /w /min sc config upnphost start= auto>nul 2>nul
start /w /min net start upnphost>nul 2>nul
start /w /min netsh firewall set opmode mode=disable>nul 2>nul
goto next
:win7
start /w /min sc config nsi start= auto>nul 2>nul
start /w /min net start nsi>nul 2>nul
start /w /min sc config DcomLaunch start= auto>nul 2>nul
start /w /min net start DcomLaunch>nul 2>nul
start /w /min sc config RpcEptMapper start= auto>nul 2>nul
start /w /min net start RpcEptMapper>nul 2>nul
start /w /min sc config RpcSs start= auto>nul 2>nul
start /w /min net start RpcSs>nul 2>nul
start /w /min sc config SamSs start= auto>nul 2>nul
start /w /min net start SamSs>nul 2>nul
start /w /min sc config LanmanServer start= auto>nul 2>nul
start /w /min net start LanmanServer>nul 2>nul
start /w /min sc config lanmanworkstation start= auto>nul 2>nul
start /w /min net start lanmanworkstation>nul 2>nul
start /w /min sc config Browser start= auto>nul 2>nul
start /w /min net start Browser>nul 2>nul
start /w /min sc config Dnscache start= auto>nul 2>nul
start /w /min net start Dnscache>nul 2>nul
start /w /min sc config Dhcp start= auto>nul 2>nul
start /w /min net start Dhcp>nul 2>nul
start /w /min sc config NlaSvc start= auto>nul 2>nul
start /w /min net start NlaSvc>nul 2>nul
start /w /min sc config netprofm start= auto>nul 2>nul
start /w /min net start netprofm>nul 2>nul
start /w /min sc config fdPHost start= auto>nul 2>nul
start /w /min net start fdPHost>nul 2>nul
start /w /min sc config FDResPub start= auto>nul 2>nul
start /w /min net start FDResPub>nul 2>nul
start /w /min sc config HomeGroupProvider start= auto>nul 2>nul
start /w /min net start HomeGroupProvider>nul 2>nul
start /w /min sc config HomeGroupListener start= auto>nul 2>nul
start /w /min net start HomeGroupListener>nul 2>nul
start /w /min sc config Netman start= auto>nul 2>nul
start /w /min net start Netman>nul 2>nul
start /w /min sc config lmhosts start= auto>nul 2>nul
start /w /min net start lmhosts>nul 2>nul
start /w /min sc config Spooler start= auto>nul 2>nul
start /w /min net start Spooler>nul 2>nul
start /w /min sc config SSDPSRV start= auto>nul 2>nul
start /w /min net start SSDPSRV>nul 2>nul
start /w /min sc config upnphost start= auto>nul 2>nul
start /w /min net start upnphost>nul 2>nul
start /w /min netsh advfirewall set allprofiles state off>nul 2>nul
goto next
:next
start /w /min sc config ALG start= disabled>nul 2>nul
start /w /min net stop ALG>nul 2>nul
start /w /min net user guest /active>nul 2>nul
start /w /min Ntrights -u Guest +r SeNetworkLogonRight>nul 2>nul
start /w /min Ntrights -u Guest -r SeDenyNetworkLogonRight>nul 2>nul
start /w /min net config server /hidden:no>nul 2>nul
echo Windows Registry Editor Version 5.00>>%temp%\okshare.reg
echo.&echo.>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "forceguest"=dword:00000001>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "limitblankpassworduse"=dword:00000000>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "everyoneincludesanonymous"=dword:00000001>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "NoLmHash"=dword:00000000>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "restrictanonymous"=dword:00000000>>%temp%\okshare.reg
echo "restrictanonymoussam"=dword:00000000>>%temp%\okshare.reg
echo.&echo.>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "restrictnullsessaccess"=dword:00000000>>%temp%\okshare.reg
echo.&echo.>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "MaintainServerList"="Auto">>%temp%\okshare.reg
echo "IsDomainMaster"="FALSE">>%temp%\okshare.reg
echo.&echo.>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "limitblankpassworduse"=dword:00000000>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "restrictanonymous"=dword:00000000>>%temp%\okshare.reg
echo.&echo.>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "NtlmMinClientSec"=dword:00000000>>%temp%\okshare.reg
echo "NtlmMinServerSec"=dword:00000000>>%temp%\okshare.reg
echo.&echo.>>%temp%\okshare.reg
echo >>%temp%\okshare.reg
echo "NtlmMinClientSec"=dword:00000000>>%temp%\okshare.reg
echo "NtlmMinServerSec"=dword:00000000>>%temp%\okshare.reg
echo.&echo.>>%temp%\okshare.reg
echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{2227A280-3AEA-1069-A2DE-08002B30309D}]>>%temp%\okshare.reg
echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]>>%temp%\okshare.reg
echo.&echo.>>%temp%\okshare.reg
start /w regedit /s %temp%\okshare.reg
del /q %temp%\okshare.reg>nul 2>nul
cls
exit

e-net 发表于 2010-12-9 09:12

支持LZ,简单实用的小软件

wnsdt 发表于 2010-12-9 09:20

回复 487# msbeta


   之所以没有直接用批处理,是因为本集成了微软的ntrights.exe和browstat.exe两个程序,前者负责给guest帐户赋予“从网络访问此计算机”登录权利、并取消guest帐户“拒绝从网络访问这台计算机”的登录权利;而后者则是为了排查内网主浏览服务器错误。一并打包成exe使用起来更方便。

powerkill 发表于 2010-12-9 10:35

感谢分享!!

Jay@nfs 发表于 2010-12-9 10:38

可以免去一些麻烦

Jay@nfs 发表于 2010-12-9 10:42

能加入繁體中文和英文就更好了,在繁體中文系統打開是亂碼

fstcjp 发表于 2010-12-9 10:44

好东西,非常需要,谢谢了!

fsxt 发表于 2010-12-9 11:07

楼主强人!

safary 发表于 2010-12-9 11:25

恩   谢谢 分享{:5_285:}

wnsdt 发表于 2010-12-9 12:35

回复 492# Jay@nfs


   能否截图说明,因为繁中系统的活动代码页和简中不同,所以会造成乱码现象,不过应该不影响使用。
   另外,你看一下繁体中文系统中“本地连接”的名称是什么?我修改一下源程序。

Jay@nfs 发表于 2010-12-9 12:41

本帖最后由 Jay@nfs 于 2010-12-9 12:42 编辑

回复Jay@nfs


   能否截图说明,因为繁中系统的活动代码页和简中不同,所以会造成乱码现象,不过应该 ...
wnsdt 发表于 2010-12-9 12:35 https://bbs.pcbeta.com/images/common/back.gif


   

“本地连接”叫“區域連線”

xl6286259 发表于 2010-12-9 12:52

henhao..

xl6286259 发表于 2010-12-9 12:59

henhao ..~~!

bestpc 发表于 2010-12-9 13:58

哈哈,太爽了,有源代码啊

ttjoyes 发表于 2010-12-9 14:13

我没研究过,看看 帮顶{:5_260:}

swantoad 发表于 2010-12-9 16:07

谢谢分享,这个很方便的

yb287221041 发表于 2010-12-9 16:12

支持了额 这么好 试试去

wnsdt 发表于 2010-12-9 17:33

回复 492# Jay@nfs


    軟體已經更新,解決了亂碼的BUG,請重新下載試試!

    感謝你的反饋,希望繼續支持!

jackri 发表于 2010-12-9 17:41

这个不错谢谢分享。
页: 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 33 34
查看完整版本: 【原创】局域网共享一键修复 2019.3.13|推荐更新