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?
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
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.