Co
(MM club member)
2002-08-08 08:00 AM
NIC driver

Hi everybody,

Is there a way to find out what kind of NIC is used in a pc: (3com/intel/compaq + type) and what driver is used for this NIC.

We have some indefinable networkproblems and we are in the middle of a SMS migration so can't use SMS for this. We have Windows 9x/NT workstations in our Domain.

Co [Big Grin]


Kdyer
(KiX Supporter)
2002-08-08 08:10 AM
Re: NIC driver

CO,

Have a look at this post, it should cover what you need - WMIQuery() - Used to execute a query against WMI .

HTH,

Kent


Co
(MM club member)
2002-08-08 08:39 AM
Re: NIC driver

Kent,

This looks very good! I only mis the driver. Any suggestions??

Co [Big Grin]


Schuliebug
(Hey THIS is FUN)
2002-08-08 09:16 AM
Re: NIC driver

What i also miss i how to determine the active one's? I'm running more NIC's, some of them disabled when working at customers. How do i get a listy with WMIQuery of the active NIC's ?

Breaker
(Hey THIS is FUN)
2002-08-08 01:13 PM
Re: NIC driver

Schuliebug, try this to get the WMI NIC collection instead of using WMIQuery:
code:
$WMI = "WINMGMTS:{IMPERSONATIONLEVEL=IMPERSONATE}!//@WKSTA"
$WMI_NETWORK_1 = "SELECT * FROM WIN32_NETWORKADAPTERCONFIGURATION WHERE IPENABLED='TRUE'"
$NetCards = GetObject($WMI).ExecQuery($WMI_NETWORK_1)

Then you can do a For Each...Next to parse through the properties of each adapter found on the system. This may fall down if you are running it on a multihomed computer, however - I can't test this at my PC.. sorry!

Once you've got your adapters, check for the ServiceName property, and then plug that into a query of Win32_SystemDriver where Name = $ServiceName... you should be able to find all the details of the driver file from here. Sorry its a bit of a convoluted solution - try it and let me know how you go!

-Breaker


Kdyer
(KiX Supporter)
2002-08-08 02:19 PM
Re: NIC driver

CO,

Sorry.. It was not very clear.. It was the bottom item in the Query list..

Kent


Co
(MM club member)
2002-08-08 09:40 PM
Re: NIC driver

Kent,

Sorry, I know English isn't my first language but I tought that i can read and understand it enough to find it but i can't. Do you have an other hint?

Maybe i wasn't clear enough for you. I want to know which driver version is used in combination with which typ of NIC. I think that you know that not every driver is a good driver.

Co [Big Grin]


LonkeroAdministrator
(KiX Master Guru)
2002-08-08 09:47 PM
Re: NIC driver

what about fighting with registry?
that's a place you will surely find it.


Radimus
(KiX Supporter)
2002-08-08 09:48 PM
Re: NIC driver

this is also something you can do...

caution this is hidden network information, if you tell anyone Cisco will hunt you down and ping you to death...

code:
Physical Address. . . . . . : 00-08-C7-29-0D-DE

it is a NIC physical address. They are divided into 2 parts, 6 characters each.
the first 6 are reserved by manufacturer, the second 6 are the unique Id

C:\>arp -a

Interface: 164.51.34.85 on Interface 2
Internet Address Physical Address Type
164.51.34.1 00-00-0c-31-c1-7f dynamic
164.51.34.10 00-08-c7-56-b1-35 dynamic
164.51.34.20 00-08-c7-05-fa-8e dynamic
164.51.34.21 00-08-c7-da-f7-17 dynamic

by examining the arp cache on your machine or from other places you can see what the manufacturer
of the nic is in each machine, which in our environment means we can know what type of PC it is.

00-08-c7 is the nic in Compaq deskpro
00-02-a5 is whatever it is in the Axx servers
00-10-a4 is Xircom realport
00-60-b0 is HP JetDirect
00-60-97 is 3com

What you can do with it is vague... besides trying to impress other geeks... You certainly couldn't
pick up any girls with this stuff. " hey baby, did you know 0060b0 is the manufacturer Id of jet
direct cards. Hey where are you going???"



Chris S.
(MM club member)
2002-08-08 10:55 PM
Re: NIC driver

Good gravy! I certainly wouldn't want to be 'bit slapped' by Cisco. I'll definitely keep this under my hat.

Schuliebug
(Hey THIS is FUN)
2002-08-08 11:11 PM
Re: NIC driver

Breaker,

Do you have a list of properties or so of the WMI Query's you're suggesting? E.g: i don't have a clue where to look or what to do. I'm now at home, so maybe thats the problem. I will try your code tomorrow! Thankz ;-)


Sealeopard
(KiX Master)
2002-08-08 11:16 PM
Re: NIC driver

Use the WMI Object Browser to see properties (it's part of the Microsoft WMI SDK).

[ 08. August 2002, 23:17: Message edited by: sealeopard ]