04 April 2020

Windows 10 - Error 30800 / The server name cannot be resolved / SMB & NetBIOS issue

Can not connect to a network drive/shared folder?

Can not print any document on a network printer?

Error #30800 in the Event Log (Application and Services Logs - Microsoft - Windows - SMBClient - Connectivity)?
The server name cannot be resolved.
Error: The requested interface is not supported.
Server name: x.x.x.x
Guidance:
The client cannot resolve the server address in DNS or WINS. This issue often manifests immediately after joining a computer to the domain, when the client's DNS registration may not yet have propagated to all DNS servers. You should also expect this event at system startup on a DNS server (such as a domain controller) that points to itself for the primary DNS. You should validate the DNS client settings on this computer using IPCONFIG /ALL and NSLOOKUP.



There are several pieces of advice to solve issues:

  1. "NetBIOS" setting of a network adapter should be in "Default" state.

     
  2. The "TCP/IP NetBIOS Helper" service status should be running and in "Automatic" startup type.

     
  3. Reset NetBIOS settings
    REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\Linkage /f
    REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\lanmanworkstation\Linkage /f
    REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\NetBIOS\Linkage /f
    REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\NetBT\Linkage /f
    REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Linkage /f
     
  4. Reset network settings. If settings of your network adapters are not default (eg. IP, DNS, etc.) after that you have to set it again.

How to check that everything is ok?

  1. telnet <IP of SMB server> 445
    445 TCP port to SMB server should be opened.
     
  2. "nbtstat -n" in CMD shows all NetBIOS names of your PC.
    If something is wrong you will get "Failed to access NetBT driver -- NetBT may not be loaded" error.

     
  3. "Get-SmbConnection" in PowerShell (should be run with administrator privileges) shows state of current connections to SMB servers.

     
  4. "ipconfig /all" in CMD should shows "NetBIOS over Tcpip: Enabled".

     
I hope that it helps someone.

1 comment:

  1. Jesus christ thank you so much. Had a remote user that simply couldn't access network shares. Was pulling my hair you. Love you man!

    ReplyDelete