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.

Discover more from Everything-PowerShell

Subscribe now to keep reading and get access to the full archive.

Continue reading