Something like this:
wmic NICCONFIG get MACAddress
 
Or a vbscript like this:
 
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & "!\\" & strComputer &
"\root\cimv2")
If Err.number <> 0 Then
Else
Set colAdapters = objWMIService.ExecQuery _
    ("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled =
True")
For Each objAdapter in colAdapters
    Physical_address = objAdapter.MACAddress
 Wscript.Echo Physical_Address
    If Not IsNull(objAdapter.IPAddress) Then
        For i = LBound(objAdapter.IPAddress) To UBound(objAdapter.IPAddress)
            IP_address = objAdapter.IPAddress(i)
  Wscript.Echo IP_Address
        Next
    End If
Next
 
 
 
 
Sincerely,

Dèjì Akómöláfé, MCSE+M MCSA+M MCT
Microsoft MVP - Directory Services
www.readymaids.com - we know IT
www.akomolafe.com
Do you now realize that Today is the Tomorrow you were worried about
Yesterday?  -anon

________________________________

From: [EMAIL PROTECTED] on behalf of Todd Hofert
Sent: Thu 2/23/2006 8:40 AM
To: [email protected]
Subject: [ActiveDir] MAC Address


I have a client PC that does not list the MAC Address for it's wireless NIC
anywhere in the OS. Is there a way to query that info from the card via
command prompt or some other method?
 
Thanks
Todd
 

This e-mail and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the
sender immediately by return e-mail, delete this e-mail and destroy any
copies. Any dissemination or use of this information by a person other
than the intended recipient is unauthorized and may be illegal.


List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to