Q:局域網(wǎng)共享無(wú)法訪問(wèn)怎么辦?
A:
解決方法一:首先右擊計(jì)算機(jī)名,然后查看該選項(xiàng)卡中出現(xiàn)的局域網(wǎng)工作組名稱,將所有計(jì)算機(jī)均加入Workgroup工作組。重啟計(jì)算機(jī)。一般來(lái)說(shuō)這樣就可以解決了。
解決方法二:重新設(shè)置一遍局域網(wǎng)共享哦。其中又有兩種方法:
1.使用軟件直接重新設(shè)置共享,比如說(shuō)飛秋、飛鴿傳書等等,查看局域網(wǎng)共享設(shè)置軟件,點(diǎn)擊這里。
2.使用代碼直接設(shè)置,無(wú)需下載軟件。復(fù)制下面的代碼到記事本里面,保存之后將保存的文件后綴名改為“.bat“即可。
@echo off @echo. @echo. @set/p var=開(kāi)啟或關(guān)閉局域網(wǎng)共享[y/n] : @if %var%==y goto a @if %var%==n goto b exit :a @reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v restrictanonymous /t reg_dword /d 0 /f @sc config lanmanserver start= auto 1>nul 2>nul @sc config LmHosts start= auto 1>nul 2>nul @sc config lanmanworkstation start= auto 1>nul 2>nul @net start lanmanserver 1>nul 2>nul @net start LmHosts 1>nul 2>nul @net start lanmanworkstation 1>nul 2>nul @echo. @ipconfig|findstr IP pause>nul&exit :b @sc config lanmanserver start= disabled 1>nul 2>nul @sc config LmHosts start= disabled 1>nul 2>nul @sc config lanmanworkstation start= disabled 1>nul 2>nul @net stop lanmanserver 1>nul 2>nul @net stop LmHosts 1>nul 2>nul @net stop lanmanworkstation 1>nul 2>nul exit |