Skip to content

Disable Netbios

Tags: windows


Considerations

  1. These should be limited to 2003 and earlier forest levels. Assuming you are on a recent forest level you should be OK.
  2. You can validate if your machine has recently used netBios with nbtstat -c

Method

Manually

  1. ncpa.cpl
  2. Right-click on the connected network and select Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
  4. Click Advanced > WINS > Disable NetBIOS over TCP/IP > Ok.

GPO

It cannot be done via GPO, unless you use a script. Sadly

Terminal window
$regkey = "HKLM:SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces"
Get-ChildItem $regkey |foreach { Set-ItemProperty -Path "$regkey\$($_.pschildname)" -Name NetbiosOptions -Value 2 -Verbose}

Registry

  1. HKLM\SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces
  2. Select the corresponding network adapter GUID. To find your corresponding network adapter GUID, start the Wired Autoconfig Windows service (if not running), and run the following command: netsh lan show interfaces.
  3. GUIDs with the NetbiosOptions value can be set to 0 (uses NetBIOS setting from the DHCP server) or 1 (enables NetBIOS over TCP/IP). To disable, set the option to 2.

Sources:
  • https://4sysops.com/archives/disable-netbios-in-windows-networks/
  • https://sage-advices.com/what-happens-if-i-disable-netbios-over-tcp-ip/
  • https://techgenix.com/NETBIOSLeaveOnorTurnOff/
  • https://www.thewindowsclub.com/disable-netbios-and-llmnr-protocols-via-gpo