Page 1 of 1 1
Topic Options
#26675 - 2002-08-08 08:00 AM NIC driver
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
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]
_________________________
Co


Top
#26676 - 2002-08-08 08:10 AM Re: NIC driver
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
CO,

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

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#26677 - 2002-08-08 08:39 AM Re: NIC driver
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
Kent,

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

Co [Big Grin]
_________________________
Co


Top
#26678 - 2002-08-08 09:16 AM Re: NIC driver
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
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 ?
_________________________
Kind regards,

Top
#26679 - 2002-08-08 01:13 PM Re: NIC driver
Breaker Offline
Hey THIS is FUN
*****

Registered: 2001-06-15
Posts: 268
Loc: Yorkshire, England
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
_________________________
================================================
Breaker


Top
#26680 - 2002-08-08 02:19 PM Re: NIC driver
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
CO,

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

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#26681 - 2002-08-08 09:40 PM Re: NIC driver
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
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]
_________________________
Co


Top
#26682 - 2002-08-08 09:47 PM Re: NIC driver
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what about fighting with registry?
that's a place you will surely find it.
_________________________
!

download KiXnet

Top
#26683 - 2002-08-08 09:48 PM Re: NIC driver
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
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???"

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#26684 - 2002-08-08 10:55 PM Re: NIC driver
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Good gravy! I certainly wouldn't want to be 'bit slapped' by Cisco. I'll definitely keep this under my hat.
Top
#26685 - 2002-08-08 11:11 PM Re: NIC driver
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
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 ;-)
_________________________
Kind regards,

Top
#26686 - 2002-08-08 11:16 PM Re: NIC driver
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
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 ]
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.062 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org