Unable to enable Net BIOS over TCP/IP in PowerShell

Page 1 of 2 12 LastLast

  1. Posts : 8
    Windows 10
       #1

    Unable to enable Net BIOS over TCP/IP in PowerShell


    Hi,

    I cant work out how to enable tcp ip in powershell. i can change it in the network adapter settings but it still shows disabled when i ipconfig /all.

    Im trying to get my desktop to see my laptop and NAS that is on the network. my laptop can see everything fine.

    Ive enabled more services than i can count and still no luck.

    Im just wondering if its got something to do with the ability to enable tcp ip?

    Any help thanks
      My Computer


  2. Posts : 30,192
    Windows 11 Pro x64 Version 23H2
       #2

    Hi MrJezbo. Welcome to the Tenforums @MrJezbo

    When did this start?

    Have you made any equipment changes or added anything new.

    Not sure exactly what you have done / changed so maybe some of this is a repeat.

    Disable third party AV's.

    I think I would start with a Network reset on any boxes you've changed. Start > Settings > Network and Internet > scroll down right side, Network reset. This may require installation of customized communication packages if you use like VPN's.

    I would also issue these four commands as resets.

    Run the following four bolded commands. Use a Command Prompt(admin) or Powershell(admin)

    Do not key in info in brackets, there for your information.

    ipconfig /flushdns (Clear the dns cache)
    nbtstat -RR (release and refresh NetBIOS names)
    netsh int ip reset (reset ip settings)
    netsh winsock reset (Reset Winsock Catalog)

    Any chance your NAS is older and requires SMB 1.0 to work?

    Are you sure they are all on Private network. Windows can default to public.

    This is the forum tutorial on sharing. Step 3 in Option 1 is important.

    Share Files and Folders Over a Network in Windows 10


    Ken
      My Computer


  3. Posts : 8
    Windows 10
    Thread Starter
       #3

    Hi Ken,

    Thanks mate for your reply and help. So at the moment I'm not sure what i have done because i shutdown my pc for the night, came back in the morning and turned it on. I had the NAS drive mapped previously before all this started and now its able to access the NAS drive so I'm not sure what i did last night but it seems to be working ok now. That said, I know for a fact my network settings for this desktop are a complete mess.

    I have another laptop, when i try to access the desktop shared folder from the laptop, i get this error 'file and print sharing resource (PC) is online but isn't responding to connection attempts.'

    I'm able to ping every networked device no problem so I'm not sure whats going on.

    Any ideas how to fix this issue?

    And just to go back to your solutions:

    Network reset : Multiple times

    Run 4 power shell commands: yes

    Changed the NAS SMB from 3.0 to 1,0 ( when it was on 3.0, my laptop had no problem accessing it so i dont think this was a fix)

    All computers are on the private network

    One thing i do remember doing was going into the advanced system settings, computer name, Network ID, and went through that little setup, after i did this i do remember this desktop finally being able to see the laptop in the network nav pane.

    Hope that helps someone. but i still have trouble getting access from my laptop to this desktop with that error.

    Thanks

    Jeremy
      My Computer


  4. Posts : 1,471
    Win10 Home x64 - 1809
       #4

    Hey Mrjezbo,
    Check your Win10 PC's > Windows Services and make sure the following two services are Running and their startup type set to Automatic Delay

    Function Discovery Provider Host - Running | Automatic Delay
    Function Discovery Resource Publication - Running | Automatic Delay

    See this tutorial - Share Files and Folders Over a Network in Windows 10 | Windows 10 Tutorials

    Note: With the two Function Discovery Services startup type set to Automatic Delay it can take a minute for shares to show in File Explorer > Network

    You might also want to check the following services are running and the startup type set accordingly ...

    Dns Client - Running | Automatic
    TCP/IP NetBIOS Helper - Running | Manual (may need to change to Automatic)
    Workstation - Running | Automatic


    If your NAS can be set to SMBv3, then you should not need to have SMBv1 installed/enabled on your Win10 PC's.

    Note: If you do need/want SMBv1 - Enable or Disable SMB1 File Sharing Protocol in Windows | Windows 10 Tutorials
      My Computers


  5. Posts : 8
    Windows 10
    Thread Starter
       #5

    Hi Eagle51,

    Thanks for your input.

    Yes all those service settings are set as you described. still no luck.

    I will try to change the WD MyCloud EX2 Ultra back to SMBv3 and see what happens.

    EDIT. ok so when i changed the NAS back to v3, the drive is not accessible. so i changed back to v1 and all good.
      My Computer


  6. Posts : 1,471
    Win10 Home x64 - 1809
       #6

    K ...

    If you would like to use SMBv3 with your NAS ...

    1. Open regedit and navigate to the following registry location ...
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters

    2. See if you have the key AllowInsecureGuestAuth : 0

    3. IF you do you can either delete the key AllowInsecureGuestAuth or set it to 1

    4. When done reboot PC ... try setting NAS to SMBv3 and hopefully SMBv3 will work.
      My Computers


  7. Posts : 1,471
    Win10 Home x64 - 1809
       #7

    BTW ... If you still having issue's with NetBIOS over TCP/IP ... you can check it in the registry.

    1. Open Regedit and navigate to the following location
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces
    2. Under Interfaces you'll see a number of Tcpip_{xxxx-xxxx-xxxx-xxxx}
    3. Check each one for NetbiosOptions = 0

    Note: Valid values for NetbiosOptions > Default is 0 ... Enabled is 1 ... Disabled is 2


    USE AT YOUR OWN RISK !!!
    ... Open PowerShell as Admin ...

    1. This will list all your adapters

    Get-NetAdapter -Name "*" | Format-List -Property "Name", "InterfaceDescription", "InstanceID"

    2. Take the InstanceID of the adpater you're using and replace {InstanceIDGoesHere} with your {InstanceID} including curly brackets ... Run the following command to CHECK NetBiosOptions for the adapter ...

    Get-ItemProperty -Path "HKLM:SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\Tcpip_{InstanceIDGoesHere}" -Name NetbiosOptions

    3.Take the InstanceID of the adpater you're using and replace {InstanceIDGoesHere} with your {InstanceID} including curly brackets ... Run the following command to SET NetBiosOptions for the adapter ...

    Set-ItemProperty -Path "HKLM:SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\Tcpip_{InstanceIDGoesHere}" NetbiosOptions -Type DWORD -Value 0 –Force


    Example:

    Unable to enable Net BIOS over TCP/IP in PowerShell-netbt.png
      My Computers


  8. Posts : 8
    Windows 10
    Thread Starter
       #8

    Hi Eagle51,

    When I try to change the value in the registry, it still shows as disabled.

    I ran the commands you suggested and still no luck. However, should the value be changed from 0 to 1 in the last command?

    Unable to enable Net BIOS over TCP/IP in PowerShell-capture.png
      My Computer


  9. Posts : 1,471
    Win10 Home x64 - 1809
       #9

    I ran the commands you suggested and still no luck. However, should the value be changed from 0 to 1 in the last command?
    You can try 1 ... I was using 0 as that's the default setting. Long as it's not 2, it should be enabled.

    Note: I see you're using a VPN and I don't know if that has anything to do with the issue or not.


    EDIT:
    If you want to see the what the NetboisOptions are set to on ALL your adapters ...

    Open PowerShell as Admin

    Get-ChildItem -Path HKLM:SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces -Recurse
      My Computers


  10. Posts : 8
    Windows 10
    Thread Starter
       #10

    Yes i changed it to 1 but no luck still.

    Yes that vpn is only used when i vlan with friends. i could try to disable it and see what happens.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:34.
Find Us




Windows 10 Forums