把下面代碼儲存成立 www.111cn.net.bat
代碼如下 |
複製代碼 |
@echo off color 2f echo.&echo. echo 【 重 要 提 示 www.111cn.net 】 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 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]>>%temp%\okshare.reg echo "forceguest"=dword:00000001>>%temp%\okshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]>>%temp%\okshare.reg echo "limitblankpassworduse"=dword:00000000>>%temp%\okshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]>>%temp%\okshare.reg echo "everyoneincludesanonymous"=dword:00000001>>%temp%\okshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]>>%temp%\okshare.reg echo "NoLmHash"=dword:00000000>>%temp%\okshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]>>%temp%\okshare.reg echo "restrictanonymous"=dword:00000000>>%temp%\okshare.reg echo "restrictanonymoussam"=dword:00000000>>%temp%\okshare.reg echo.&echo.>>%temp%\okshare.reg echo [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters]>>%temp%\okshare.reg echo "restrictnullsessaccess"=dword:00000000>>%temp%\okshare.reg echo.&echo.>>%temp%\okshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters]>>%temp%\okshare.reg echo "MaintainServerList"="Auto">>%temp%\okshare.reg echo "IsDomainMaster"="FALSE">>%temp%\okshare.reg echo.&echo.>>%temp%\okshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa]>>%temp%\okshare.reg echo "limitblankpassworduse"=dword:00000000>>%temp%\okshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa]>>%temp%\okshare.reg echo "restrictanonymous"=dword:00000000>>%temp%\okshare.reg echo.&echo.>>%temp%\okshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0]>>%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\SYSTEM\ControlSet001\Control\Lsa\MSV1_0]>>%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 |
然後雙擊即可實現區域網路