2023年12月8日发(作者:)
Q:局域网共享无法访问怎么办?
A:
解决方法一:首先右击计算机名,然后查看该选项卡中出现的局域网工作组名称,将所有计算机均加入Workgroup工作组。重启计算机。一般来说这样就可以解决了。
解决方法二:重新设置一遍局域网共享哦。其中又有两种方法:
1.使用软件直接重新设置共享,比如说飞秋、飞鸽传书等等,查看局域网共享设置软件,点击这里。
2.使用代码直接设置,无需下载软件。复制下面的代码到记事本里面,保存之后将保存的文件后缀名改为“.bat“即可。
@echo off
@echo.
@echo.
@set/p var=开启或关闭局域网共享[y/n] :
@if %var%==y goto a
@if %var%==n goto b
exit
:a
@reg add HKLMSYSTEMCurrentControlSetControlLsa /v restrictanonymous /t reg_dword /d 0 /f
@scconfiglanmanserver start= auto 1>nul 2>nul
@scconfigLmHosts start= auto 1>nul 2>nul
@scconfiglanmanworkstation 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
@scconfiglanmanserver start= disabled 1>nul 2>nul
@scconfigLmHosts start= disabled 1>nul 2>nul
@scconfiglanmanworkstation 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
来源:/201107/


发布评论