Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: WindowsRegistry{ServiceName} V.S. wmic{ServiceName}

by pKai (Priest)
on Sep 19, 2007 at 12:53 UTC ( #639884=note: print w/replies, xml ) Need Help??


in reply to WindowsRegistry{ServiceName} V.S. wmic{ServiceName} UPDATE: Solved

Looking for values from the output of wmic nic list ... it seems to me that that corresponds to the following Registry tree:

LMACHINE/SYSTEM/CurrentControlSet/Control/Class/{4D36E972-E325-11CE-BFC1-08002bE10318}

especially:

  • One of the subkeys (e.g. "0002"; may actually vary per machine) has an entry 0002//NetCfgInstanceId which value is the same GUID you find in LMachine/SOFTWARE/Microsoft/Windows NT/CurrentVersion/NetworkCards/2//ServiceName (1:1 correspondence on my machines; actual GUID may vary per machine/nic)
  • The "ServiceName" (wmic) you mention is the 0002/Ndi//Service entry

Just guesswork from a quick scan, but HTH.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://639884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2021-04-17 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?