Disable Netbios
If you want to use Powershell to disable Netbios on several computers, you can execute this script:
$adapters=(gwmi win32_networkadapterconfiguration ) Foreach ($adapter in $adapters){ Write-Host $adapter $adapter.settcpipnetbios(2) } |
Options
Parameters for settcpipnetbios are:
- 0: Enable Netbios via DHCP.
- 1: Enable Netbios on the interface.
- 2: Disable Netbios on the interface.
For more information on this function: http://msdn.microsoft.com/en-us/library/aa393601(v=vs.85).aspx
Verification
After the script was runned, you will have this configuration:
Best object I have found on this subject. .Excellent!
Sadly, it only changes the setting for adapters that are currently connected. So if, say, you’re on a cabled connection, the setting won’t be changed for the WiFi adapter, and vice versa.
this helped me out a lot today, i needed something simple and this was great. now i have to figure out how to point it to my text file so i can push it to multiple workstations. Thanks