Configure NetBIOS settings: registry value EnableNetbiosComputerHKLM\Software\Policies\Microsoft\Windows NT\DNSClient

Policy ID
DNS_Netbios
Scope
Computer Configuration
Supported on
At least Windows Vista
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Network › DNS Client

Registry

EnableNetbios

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Configure NetBIOS options:
Options
ItemStored value
Disable NetBIOS name resolution0
Allow NetBIOS name resolution1
Disable NetBIOS name resolution on public networks2
NetBIOS learning mode3
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient]

; Options (use only one)
; Disable NetBIOS name resolution
"EnableNetbios"=dword:00000000
; Allow NetBIOS name resolution
"EnableNetbios"=dword:00000001
; Disable NetBIOS name resolution on public networks
"EnableNetbios"=dword:00000002
; NetBIOS learning mode
"EnableNetbios"=dword:00000003
CMD
:: Options (use only one)

:: Disable NetBIOS name resolution
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "EnableNetbios" /t REG_DWORD /d 0 /f
:: Allow NetBIOS name resolution
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "EnableNetbios" /t REG_DWORD /d 1 /f
:: Disable NetBIOS name resolution on public networks
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "EnableNetbios" /t REG_DWORD /d 2 /f
:: NetBIOS learning mode
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "EnableNetbios" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Force | Out-Null

# Options (use only one)
# Disable NetBIOS name resolution
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'EnableNetbios' -PropertyType DWord -Value 0 -Force | Out-Null
# Allow NetBIOS name resolution
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'EnableNetbios' -PropertyType DWord -Value 1 -Force | Out-Null
# Disable NetBIOS name resolution on public networks
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'EnableNetbios' -PropertyType DWord -Value 2 -Force | Out-Null
# NetBIOS learning mode
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'EnableNetbios' -PropertyType DWord -Value 3 -Force | Out-Null