问题点:设置好共享后发现无法通过本机IP地址打开,提示找不到网络路径,只能通过\主机名进行访问,于是运行里面用\LOCALHOST及\127.0.0.1及试了下发现均显示找不到网络路径。于是点击修复,提示远程计算机或设备将不接受连接。如下图
禁用网卡甚至使用net winsock reset以后均无效。并尝试下载网上修复工具,均无果
使用netatat -an查看本地445端口,发现没有打开,
以下是综合网上的解决方案
分析:
1.先检查各项服务运行情况,发现都是在运行的,网络共享设置里面也全部打开了。
2.用netstat -an命令检查端口情况发现445端口没有打开。
3.445端口是SMB的服务端口,没打开要么是服务问题,要么是网卡问题。
4.检查本地连接的详细信息发现NETBIOS OVER TCP/IP的状态是禁用的。
5.一般情况下这个协议默认都是会开启的。
6.于是百度解决办法,各种设置及修改注册表,均告失败。
7.想到可以用nbtstat -a -127.0.0.1命令看下,结果返回提示netbt没有绑定任何设备。
8.也就是说netbt服务已经开启了,但是没有绑定到现有网卡上面,当然也无法工作了。
9.于是卸载网卡驱动(不删除驱动文件)后扫描硬件改动自动添加网卡。
10.结果错误提示仍旧一样。
11.想到电脑之前换过主板而系统没有重装,估计是网卡参数部分有错误或者冲突。
12.于是进注册表检查lanmanserver,netbt和netbios服务项的数值,发现有残留数值。
解决办法:
由此可见是因为netbt的参数里面未绑定当前网卡导致的,方法也就自然简单了,将netbt里面绑定的网卡清空,再通过卸载网卡和自动安装网卡驱动绑定netbt服务项即可。清空的办法可以导入如下注册表内容,导入后打开计算机管理——设备管理器——网络适配器——卸载网卡再扫描硬件改动。注意(卸载网卡设备不需要勾选卸载网卡驱动)
修复注册表内容如下,复制保存为.reg文件
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBIOS] "DisplayName"="@%windir%\\system32\\drivers\\netbios.sys,-503" "ErrorControl"=dword:00000001 "Group"="NetBIOSGroup" "ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\ 72,00,69,00,76,00,65,00,72,00,73,00,5c,00,6e,00,65,00,74,00,62,00,69,00,6f,\ 00,73,00,2e,00,73,00,79,00,73,00,00,00 "Start"=dword:00000001 "Type"=dword:00000002 "Description"="@%windir%\\system32\\drivers\\netbios.sys,-502" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBIOS\Linkage] "Export"=hex(7):5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4e,00,65,00,74,\ 00,42,00,49,00,4f,00,53,00,5f,00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,\ 63,00,70,00,69,00,70,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,\ 00,4e,00,65,00,74,00,42,00,49,00,4f,00,53,00,5f,00,4e,00,65,00,74,00,42,00,\ 54,00,5f,00,54,00,63,00,70,00,69,00,70,00,36,00,00,00,00,00 "Bind"=hex(7):5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4e,00,65,00,74,\ 00,42,00,54,00,5f,00,54,00,63,00,70,00,69,00,70,00,00,00,5c,00,44,00,65,00,\ 76,00,69,00,63,00,65,00,5c,00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,63,\ 00,70,00,69,00,70,00,36,00,00,00,00,00 "Route"=hex(7):22,00,4e,00,65,00,74,00,42,00,54,00,22,00,20,00,22,00,54,00,63,\ 00,70,00,69,00,70,00,22,00,00,00,22,00,4e,00,65,00,74,00,42,00,54,00,22,00,\ 20,00,22,00,54,00,63,00,70,00,69,00,70,00,36,00,22,00,00,00,00,00 "LanaMap"=hex:01,00,01,01 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBIOS\Parameters] "MaxLana"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetbiosSmb] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetbiosSmb\Linkage] "Export"=hex(7):5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4e,00,65,00,74,\ 00,62,00,69,00,6f,00,73,00,53,00,6d,00,62,00,00,00,00,00 "Bind"=hex(7):00,00 "Route"=hex(7):00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT] "DisplayName"="@%SystemRoot%\\system32\\drivers\\netbt.sys,-2" "ErrorControl"=dword:00000001 "Group"="PNP_TDI" "ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\ 52,00,49,00,56,00,45,00,52,00,53,00,5c,00,6e,00,65,00,74,00,62,00,74,00,2e,\ 00,73,00,79,00,73,00,00,00 "Start"=dword:00000001 "Type"=dword:00000001 "Description"="@%SystemRoot%\\system32\\drivers\\netbt.sys,-1" "DependOnService"=hex(7):54,00,64,00,78,00,00,00,74,00,63,00,70,00,69,00,70,00,\ 00,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Linkage] "OtherDependencies"=hex(7):54,00,63,00,70,00,69,00,70,00,00,00,00,00 "Export"=hex(7):5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4e,00,65,00,74,\ 00,42,00,54,00,5f,00,54,00,63,00,70,00,69,00,70,00,00,00,5c,00,44,00,65,00,\ 76,00,69,00,63,00,65,00,5c,00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,63,\ 00,70,00,69,00,70,00,36,00,00,00,00,00 "Bind"=hex(7):5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,54,00,63,00,70,\ 00,69,00,70,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,54,00,\ 63,00,70,00,69,00,70,00,36,00,00,00,00,00 "Route"=hex(7):22,00,54,00,63,00,70,00,69,00,70,00,22,00,00,00,22,00,54,00,63,\ 00,70,00,69,00,70,00,36,00,22,00,00,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters] "BcastNameQueryCount"=dword:00000003 "BcastQueryTimeout"=dword:000002ee "CacheTimeout"=dword:000927c0 "EnableLMHOSTS"=dword:00000001 "NameServerPort"=dword:00000089 "NameSrvQueryCount"=dword:00000003 "NameSrvQueryTimeout"=dword:000005dc "NbProvider"="_tcp" "SessionKeepAlive"=dword:0036ee80 "Size/Small/Medium/Large"=dword:00000001 "TransportBindName"="\\Device\\" "UseNewSmb"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Security] "Security"=hex:01,00,04,80,b4,00,00,00,c0,00,00,00,00,00,00,00,14,00,00,00,02,\ 00,a0,00,07,00,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,\ 00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,\ 00,00,00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,25,02,00,00,\ 00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,00,00,14,00,40,\ 00,00,00,01,01,00,00,00,00,00,05,13,00,00,00,00,00,14,00,40,00,00,00,01,01,\ 00,00,00,00,00,05,14,00,00,00,00,00,18,00,9d,01,02,00,01,02,00,00,00,00,00,\ 05,20,00,00,00,2c,02,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,00,00,\ 00,00,00,05,12,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer] "DisplayName"="@%systemroot%\\system32\\srvsvc.dll,-100" "ErrorControl"=dword:00000001 "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\ 00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\ 6b,00,20,00,6e,00,65,00,74,00,73,00,76,00,63,00,73,00,00,00 "Start"=dword:00000002 "Type"=dword:00000020 "Description"="@%systemroot%\\system32\\srvsvc.dll,-101" "DependOnService"=hex(7):53,00,61,00,6d,00,53,00,53,00,00,00,53,00,72,00,76,00,\ 32,00,00,00,00,00 "ObjectName"="LocalSystem" "ServiceSidType"=dword:00000001 "RequiredPrivileges"=hex(7):53,00,65,00,43,00,68,00,61,00,6e,00,67,00,65,00,4e,\ 00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,\ 67,00,65,00,00,00,53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,00,6e,\ 00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,\ 00,00,53,00,65,00,41,00,75,00,64,00,69,00,74,00,50,00,72,00,69,00,76,00,69,\ 00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,4c,00,6f,00,61,00,64,00,44,00,\ 72,00,69,00,76,00,65,00,72,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,\ 00,65,00,00,00,00,00 "FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\ 00,01,00,00,00,60,ea,00,00,01,00,00,00,c0,d4,01,00,00,00,00,00,00,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\AutotunedParameters] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Linkage] "Export"=hex(7):5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4c,00,61,00,6e,\ 00,6d,00,61,00,6e,00,53,00,65,00,72,00,76,00,65,00,72,00,5f,00,4e,00,65,00,\ 74,00,62,00,69,00,6f,00,73,00,53,00,6d,00,62,00,00,00,5c,00,44,00,65,00,76,\ 00,69,00,63,00,65,00,5c,00,4c,00,61,00,6e,00,6d,00,61,00,6e,00,53,00,65,00,\ 72,00,76,00,65,00,72,00,5f,00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,63,\ 00,70,00,69,00,70,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,\ 4c,00,61,00,6e,00,6d,00,61,00,6e,00,53,00,65,00,72,00,76,00,65,00,72,00,5f,\ 00,54,00,63,00,70,00,69,00,70,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,\ 65,00,5c,00,4c,00,61,00,6e,00,6d,00,61,00,6e,00,53,00,65,00,72,00,76,00,65,\ 00,72,00,5f,00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,63,00,70,00,69,00,\ 70,00,36,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4c,00,61,\ 00,6e,00,6d,00,61,00,6e,00,53,00,65,00,72,00,76,00,65,00,72,00,5f,00,54,00,\ 63,00,70,00,69,00,70,00,36,00,00,00,00,00 "Bind"=hex(7):5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4e,00,65,00,74,\ 00,62,00,69,00,6f,00,73,00,53,00,6d,00,62,00,00,00,5c,00,44,00,65,00,76,00,\ 69,00,63,00,65,00,5c,00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,63,00,70,\ 00,69,00,70,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,54,00,\ 63,00,70,00,69,00,70,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,\ 00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,63,00,70,00,69,00,70,00,36,00,\ 00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,54,00,63,00,70,00,69,\ 00,70,00,36,00,00,00,00,00 "Route"=hex(7):22,00,4e,00,65,00,74,00,62,00,69,00,6f,00,73,00,53,00,6d,00,62,\ 00,22,00,00,00,22,00,4e,00,65,00,74,00,42,00,54,00,22,00,20,00,22,00,54,00,\ 63,00,70,00,69,00,70,00,22,00,00,00,22,00,54,00,63,00,70,00,69,00,70,00,22,\ 00,00,00,22,00,4e,00,65,00,74,00,42,00,54,00,22,00,20,00,22,00,54,00,63,00,\ 70,00,69,00,70,00,36,00,22,00,00,00,22,00,54,00,63,00,70,00,69,00,70,00,36,\ 00,22,00,00,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters] "EnableAuthenticateUserSharing"=dword:00000000 "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\ 00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 73,00,72,00,76,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00 "ServiceDllUnloadOnStop"=dword:00000001 "NullSessionPipes"=hex(7):53,00,51,00,4c,00,5c,00,51,00,55,00,45,00,52,00,59,\ 00,00,00,45,00,50,00,4d,00,41,00,50,00,50,00,45,00,52,00,00,00,4c,00,4f,00,\ 43,00,41,00,54,00,4f,00,52,00,00,00,54,00,72,00,6b,00,57,00,6b,00,73,00,00,\ 00,54,00,72,00,6b,00,53,00,76,00,72,00,00,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\FsctlAllowlist] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation] "DisplayName"="@%systemroot%\\system32\\wkssvc.dll,-100" "ErrorControl"=dword:00000001 "Group"="NetworkProvider" "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\ 00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\ 6b,00,20,00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,53,00,65,00,72,00,76,\ 00,69,00,63,00,65,00,00,00 "Start"=dword:00000002 "Type"=dword:00000020 "Description"="@%systemroot%\\system32\\wkssvc.dll,-101" "DependOnService"=hex(7):42,00,6f,00,77,00,73,00,65,00,72,00,00,00,4d,00,52,00,\ 78,00,53,00,6d,00,62,00,32,00,30,00,00,00,4e,00,53,00,49,00,00,00,00,00 "ObjectName"="NT AUTHORITY\\NetworkService" "ServiceSidType"=dword:00000001 "RequiredPrivileges"=hex(7):53,00,65,00,43,00,68,00,61,00,6e,00,67,00,65,00,4e,\ 00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,\ 67,00,65,00,00,00,53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,00,6e,\ 00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,\ 00,00,53,00,65,00,41,00,75,00,64,00,69,00,74,00,50,00,72,00,69,00,76,00,69,\ 00,6c,00,65,00,67,00,65,00,00,00,00,00 "FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\ 00,01,00,00,00,60,ea,00,00,01,00,00,00,c0,d4,01,00,00,00,00,00,00,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Linkage] "Export"=hex(7):5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4c,00,61,00,6e,\ 00,6d,00,61,00,6e,00,57,00,6f,00,72,00,6b,00,73,00,74,00,61,00,74,00,69,00,\ 6f,00,6e,00,5f,00,4e,00,65,00,74,00,62,00,69,00,6f,00,73,00,53,00,6d,00,62,\ 00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4c,00,61,00,6e,00,\ 6d,00,61,00,6e,00,57,00,6f,00,72,00,6b,00,73,00,74,00,61,00,74,00,69,00,6f,\ 00,6e,00,5f,00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,63,00,70,00,69,00,\ 70,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4c,00,61,00,6e,\ 00,6d,00,61,00,6e,00,57,00,6f,00,72,00,6b,00,73,00,74,00,61,00,74,00,69,00,\ 6f,00,6e,00,5f,00,54,00,63,00,70,00,69,00,70,00,00,00,5c,00,44,00,65,00,76,\ 00,69,00,63,00,65,00,5c,00,4c,00,61,00,6e,00,6d,00,61,00,6e,00,57,00,6f,00,\ 72,00,6b,00,73,00,74,00,61,00,74,00,69,00,6f,00,6e,00,5f,00,4e,00,65,00,74,\ 00,42,00,54,00,5f,00,54,00,63,00,70,00,69,00,70,00,36,00,00,00,5c,00,44,00,\ 65,00,76,00,69,00,63,00,65,00,5c,00,4c,00,61,00,6e,00,6d,00,61,00,6e,00,57,\ 00,6f,00,72,00,6b,00,73,00,74,00,61,00,74,00,69,00,6f,00,6e,00,5f,00,54,00,\ 63,00,70,00,69,00,70,00,36,00,00,00,00,00 "Bind"=hex(7):5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,4e,00,65,00,74,\ 00,62,00,69,00,6f,00,73,00,53,00,6d,00,62,00,00,00,5c,00,44,00,65,00,76,00,\ 69,00,63,00,65,00,5c,00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,63,00,70,\ 00,69,00,70,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,54,00,\ 63,00,70,00,69,00,70,00,00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,\ 00,4e,00,65,00,74,00,42,00,54,00,5f,00,54,00,63,00,70,00,69,00,70,00,36,00,\ 00,00,5c,00,44,00,65,00,76,00,69,00,63,00,65,00,5c,00,54,00,63,00,70,00,69,\ 00,70,00,36,00,00,00,00,00 "Route"=hex(7):22,00,4e,00,65,00,74,00,62,00,69,00,6f,00,73,00,53,00,6d,00,62,\ 00,22,00,00,00,22,00,4e,00,65,00,74,00,42,00,54,00,22,00,20,00,22,00,54,00,\ 63,00,70,00,69,00,70,00,22,00,00,00,22,00,54,00,63,00,70,00,69,00,70,00,22,\ 00,00,00,22,00,4e,00,65,00,74,00,42,00,54,00,22,00,20,00,22,00,54,00,63,00,\ 70,00,69,00,70,00,36,00,22,00,00,00,22,00,54,00,63,00,70,00,69,00,70,00,36,\ 00,22,00,00,00,00,00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\NetworkProvider] "DeviceName"="\\Device\\LanmanRedirector" "DisplayName"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,\ 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ 5c,00,77,00,6b,00,73,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\ 00,31,00,30,00,32,00,00,00 "Name"="Microsoft Windows Network" "ProviderPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\ 00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 6e,00,74,00,6c,00,61,00,6e,00,6d,00,61,00,6e,00,2e,00,64,00,6c,00,6c,00,00,\ 00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters] "EnablePlainTextPassword"=dword:00000000 "EnableSecuritySignature"=dword:00000001 "RequireSecuritySignature"=dword:00000000 "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\ 00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 77,00,6b,00,73,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00 "ServiceDllUnloadOnStop"=dword:00000001