Solved

LDAP Query for networkAddress attribute

Posted on 2011-09-20
3
1,601 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:lgarza
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
Krzysztof Pytko earned 250 total points
Comment Utility
Try with that on a DC or workstation with Administrative Tools installed

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

Regards,
Krzysztof
0
 

Author Comment

by:lgarza
Comment Utility
perfect!  thank you very much
0
 
LVL 39

Expert Comment

by:Krzysztof Pytko
Comment Utility
You're welcome :) Glad that it works :)

Krzysztof
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

There are two modes of restricted groups GPOs. Replacing mode:   Additive mode:   How do they work? Replacing mode: Everything (users, groups, computers) that is member of the local administrators group will be cleared out. After th…
Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now