Recently we had a customer that wanted to turn off Netbios on all servers for all interfaces.

StackOverflow had a nice script that did this with ease, here is the script:

$i = 'HKLM:\SYSTEM\CurrentControlSet\Services\netbt\Parameters\interfaces'  
Get-ChildItem $i | ForEach-Object {  
    Set-ItemProperty -Path "$i\$($_.pschildname)" -name NetBiosOptions -value 2
  • Happy scripting.

1 Comment

Windows Server:- Disable LMHOSTS with PowerShell – Everything-PowerShell · January 22, 2020 at 5:08 am

[…] PowerShell you can pretty much do anything. In this article we disabled Netbios using a registry key, however you can do the same using WMI and […]

Comments are closed.