Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: [ActiveDir] [OT] Finding Device ID for a given NIC...
Prev Next
You are not authorized to post a reply.

AuthorMessages
Ravi.Sabharanjak@blackrock.comUser is Offline

Posts:98

03/29/2010 6:11 PM  
Do you want the setting ID?



Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator")

Set objWbemServices = objWbemLocator.ConnectServer()

'Create the WScript.Shell object

Set objWshShell = CreateObject("WScript.Shell")



'Select all ethernet adapters -

Set objWbemobjCollection = objWbemServices.ExecQuery("SELECT * FROM
Win32_NetworkAdapter WHERE AdapterType = 'Ethernet 802.3'")

For Each objInstance In objWbemobjCollection

'Go for the associators for this instance of type
Win32_NetworkAdapterConfiguration -

Set objAssocColl = objInstance.Associators_(,
"Win32_NetworkAdapterConfiguration")

'Go for each instance of the associators

For Each objAssocInstance In objAssocColl

If objAssocInstance.DhCPEnabled = True Then
'Only act on DHCP enabled interfaces

strSettingID = objAssocInstance.SettingID

' WScript.Echo "strSettingID = " & strSettingID



________________________________

From: activedir-owner@mail.activedir.org
[mailto:activedir-owner@mail.activedir.org] On Behalf Of Reza Alikhani
Sent: Saturday, March 27, 2010 1:36 PM
To: Active Directory
Subject: [ActiveDir] Finding Device ID for a given NIC...



As you know, Network Interface Adapters have a unique identifier that
Microsoft refers to it in its documents as Device ID, for example:

{A64C6A55-A5EF-4DFF-87808D4F56C7D25D}



Note I do not mean the MAC address.

Now my question is how can I find the Device ID for a given NIC?



Thanks



________________________________

Reza Alikhani

MCSA, MCTS, MCP, Linux+

________________________________




THIS MESSAGE AND ANY ATTACHMENTS ARE CONFIDENTIAL, PROPRIETARY, AND MAY BE PRIVILEGED. If this message was misdirected, BlackRock, Inc. and its subsidiaries, ("BlackRock") does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BlackRock, unless the author is authorized by BlackRock to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by BlackRock. Although BlackRock operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed.



RobSilverUser is Offline

Posts:0

03/30/2010 6:54 PM  
Hi

You can try the following to get the device ID of each NIC in the domain:

psexec \\* hostname & getmac >> \\server\share\NICDeviceIDs.txt<file://\\server\share\NICDeviceIDs.txt>

Regards,
Rob
http://robsilver.org
________________________________
From: activedir-owner@mail.activedir.org [activedir-owner@mail.activedir.org] on behalf of Sabharanjak, Ravi [Ravi.Sabharanjak@blackrock.com]
Sent: 29 March 2010 18:10
To: activedir@mail.activedir.org
Subject: [ActiveDir] [OT] Finding Device ID for a given NIC...

Do you want the setting ID?

Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWbemServices = objWbemLocator.ConnectServer()
'Create the WScript.Shell object
Set objWshShell = CreateObject("WScript.Shell")

'Select all ethernet adapters -
Set objWbemobjCollection = objWbemServices.ExecQuery("SELECT * FROM Win32_NetworkAdapter WHERE AdapterType = 'Ethernet 802.3'")
For Each objInstance In objWbemobjCollection
'Go for the associators for this instance of type Win32_NetworkAdapterConfiguration -
Set objAssocColl = objInstance.Associators_(, "Win32_NetworkAdapterConfiguration")
'Go for each instance of the associators
For Each objAssocInstance In objAssocColl
If objAssocInstance.DhCPEnabled = True Then 'Only act on DHCP enabled interfaces
strSettingID = objAssocInstance.SettingID
' WScript.Echo "strSettingID = " & strSettingID

________________________________
From: activedir-owner@mail.activedir.org [mailto:activedir-owner@mail.activedir.org] On Behalf Of Reza Alikhani
Sent: Saturday, March 27, 2010 1:36 PM
To: Active Directory
Subject: [ActiveDir] Finding Device ID for a given NIC...


As you know, Network Interface Adapters have a unique identifier that Microsoft refers to it in its documents as Device ID, for example:

{A64C6A55-A5EF-4DFF-87808D4F56C7D25D}



Note I do not mean the MAC address.

Now my question is how can I find the Device ID for a given NIC?



Thanks

________________________________
Reza Alikhani

MCSA, MCTS, MCP, Linux+
________________________________




THIS MESSAGE AND ANY ATTACHMENTS ARE CONFIDENTIAL, PROPRIETARY, AND MAY BE PRIVILEGED. If this message was misdirected, BlackRock, Inc. and its subsidiaries, ("BlackRock") does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BlackRock, unless the author is authorized by BlackRock to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by BlackRock. Although BlackRock operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed.


You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > [ActiveDir] [OT] Finding Device ID for a given NIC...



ActiveForums 3.7
Friends

Friends

VisualClickButoton
Members

Members

MembershipMembership:
Latest New UserLatest:MrPTSai
New TodayNew Today:0
New YesterdayNew Yesterday:0
User CountOverall:5234

People OnlinePeople Online:
VisitorsVisitors:35
MembersMembers:0
TotalTotal:35

Online NowOnline Now:

Ads

Copyright 2009 ActiveDir.org
Terms Of Use