LDAP Query for networkAddress attribute

In Active Directory, I would like to run a LDAP query against all computers finding the information on the "networkAddress" attribute.

We record all MAC addresses on computers once joined to the domain.  Now, i would like to have a handy query i can run against it.

thanks
lgarzaAsked:
Who is Participating?
 
Krzysztof PytkoConnect With a Mentor Senior Active Directory EngineerCommented:
Try with that on a DC or workstation with Administrative Tools installed

dsquery * -filter "&(&(objectClass=Computer)(objectCategory=Computer))" -attr sAMAccountName,networkAddress

Regards,
Krzysztof
0
 
lgarzaAuthor Commented:
perfect!  thank you very much
0
 
Krzysztof PytkoSenior Active Directory EngineerCommented:
You're welcome :) Glad that it works :)

Krzysztof
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.