Re: LDAP query information



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


.



Relevant Pages

  • Re: LDAP query information
    ... you can create queries by selecting ... Can you please construct a LDAP query so that I can run it & test it. ... I'm don't know how you can retrieve these values in ADUC, ... canonicalName (Constructed, also called operational, meaning not saved in AD ...
    (microsoft.public.windows.server.scripting)
  • Re: LDAP Query for Active Accounts with and without email addresses [W
    ... Brian Desmond ... Looking for an LDAP Query to pull out Active Users with and without email ...
    (microsoft.public.windows.server.active_directory)
  • Re: Using .Net Code to get list of users.
    ... This is more a thing you might want to post in the platformsdk group. ... data is not stored in AD, so LDAP query isn't going to do it. ... will pull this data for you. ... > Is there some way that I can use a .Net or VB Script to pull from active ...
    (microsoft.public.windows.server.active_directory)
  • Re: LDAP Query for Active Users -
    ... The query you've posted is only part of the LDAP query, ... e-mail address in the organizational unit "Root Domain OU.\OU1" and its ... Looking for an LDAP Query to pull out Active Users with and without email ...
    (microsoft.public.exchange.admin)