|
|
|||||||
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 |
||||||||
|
|
|||||||
CO, Have a look at this post, it should cover what you need - WMIQuery() - Used to execute a query against WMI . HTH, Kent |
||||||||
|
|
|||||||
Kent, This looks very good! I only mis the driver. Any suggestions?? Co |
||||||||
|
|
|||||||
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 ? |
||||||||
|
|
|||||||
Schuliebug, try this to get the WMI NIC collection instead of using WMIQuery: code: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!$WMI = "WINMGMTS:{IMPERSONATIONLEVEL=IMPERSONATE}!//@WKSTA" 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 |
||||||||
|
|
|||||||
CO, Sorry.. It was not very clear.. It was the bottom item in the Query list.. Kent |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
what about fighting with registry? that's a place you will surely find it. |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
Good gravy! I certainly wouldn't want to be 'bit slapped' by Cisco. I'll definitely keep this under my hat. |
||||||||
|
|
|||||||
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 ;-) |
||||||||
|
|
|||||||
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 ] |