Solved

LDAP Query for networkAddress attribute

Posted on 2011-09-20
3
1,652 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
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ADMT 3.2 LAB Computer Migration not successful 2 43
AD backup 6 52
exchange, active directory 12 39
Add LDAP custom Attribute to Exchange GAL 2010 2 36
Resolve DNS query failed errors for Exchange
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

816 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

9 Experts available now in Live!

Get 1:1 Help Now