PowerShell:- Disable Netbios on your network adapters

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.

You may also like...

1 Response

  1. Jan 22, 2020

    […] 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 […]

Leave a Reply