Re: LDAP query information
- From: "Richard Mueller" <rlmueller-NOSPAM@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Jul 2006 11:22:23 -0500
Vishn wrote:
Can you please help me in creating a LDAP Query which will pull the
information about all the attributes of computer accounts in Active
Directory
domain - For example, General tab info like 'computer name', 'Role' ,
Object
tab information like 'Canonical name of the object' & 'Object class -
Created
& Modified' etc. I was able to pull most of the information except for
'Canonical name of the object' which could not be created using 'Saved
Queries' column in Active Directory. I can create one using 'custom
search'
which needs me to input an LDAP query for the above objects which I am not
aware of.
It would be really helpful is someone can post the LDAP query.
Hi,
I'm don't know how you can retrieve these values in ADUC, but the LDAP query
for computer objects would be:
(objectCategory=computer)
The attributes you refer to are:
sAMAccountName (NetBIOS name of the computer)
objectClass (multi-valued)
whenCreated
whenChanged
canonicalName (Constructed, also called operational, meaning not saved in AD
but computed when requested)
machineRole
I hope this helps.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
.
- Follow-Ups:
- Re: LDAP query information
- From: Vishn
- Re: LDAP query information
- Prev by Date: Re: disable user account in active directory via a vb script
- Next by Date: [PSH] Less pagination
- Previous by thread: Re: disable user account in active directory via a vb script
- Next by thread: Re: LDAP query information
- Index(es):
Relevant Pages
|