NetBIOS over multiple adapters

(imported topic written by Steve91)

Hi Guys

I’m trying to query the NetBIOS status of network adapters in our servers.

The problem I have is identifying which adapter is the network facing one (i.e. the one with the I.P.)

If I run the following query:

(string values of selects “TcpipNetbiosOptions from Win32_NetworkAdapterConfiguration Where IPEnabled = True” of wmi)

I get the below results:

0

0

1

This server has 3 nic’s.

Only one has a lan cable plugged in and is acting as the ip interface and that it connection 3.

Is there a way I can say, return the NetBIOS status of the adapter or team acting as the i.p. interface first and the diabaled or inactive adapters after that?

Cheers

Steve

(imported comment written by NoahSalzman)

Do you need ordering or do you just need to list the enabled interfaces that also have NetBIOS enabled? Perhaps something like:

(string values of it, names of it) of selects “Caption, IPAddress, TCPIPNetBIOSOptions from Win32_NetworkAdapterConfiguration where IPEnabled = true and TCPIPNetBIOSOptions = 1” of wmi

(imported comment written by Steve91)

Hi Noah

Thanks for the reply

I actually need ordering.

There’s 3 netbios options: 0, 1 & 2

I’m trying to retrieve whichever option is configured for the adapter which is the i.p. interface.

I have to run a manegement report each week analysing NetBIOS over our server estate and whilst I can retrieve the value for each adapter I can’t actually say which one is the adapter in use. So I may say that the value for SERVERX is 0 when in fact it’s actually 1 as in the above example.

(Am I making sense?) :slight_smile:

Cheers

Steve