Solved

LDAP Query for networkAddress attribute

Posted on 2011-09-20
3
1,698 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
Krzysztof Pytko earned 250 total points
ID: 36572595
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
ID: 36599755
perfect!  thank you very much
0
 
LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 36708320
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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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