|
| |||||||||
| Tags: ldap, ous, query |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| LDAP Query to show all users within multiple OUs
Hey everyone, I want to write the following LDAP query against my 03 Active Directory. I want to write it so that it lists all of the servers within the directory. Here are the components that I want to list (so I can do an export of this information) From the users general tab: 1. Name 2. Office 4. Phone Number 5. Email From the users Address tab: All of the fields From the users Telephones tab: All of the fields From the Organization tab: All of the fields From Profile All of the fields ------- Thanks in advance everyone for your help - greatly appriciated on this end. Ryan |
|
#2
| |||
| |||
| Re: LDAP Query to show all users within multiple OUs
Ryan, you can obtain a list of arbitrary set of attributes for user objects in the domain (sounds like that's what you are looking for) using adfind (from joeware.net) or dsquery... adfind dsquery * domainroot -filter "(&(objectCategory=Person)(objectclass=User))" -attr attribute1 attribute2 etc... adfind -b dc=yourdomain,dc=com -f "(&(objectCategory=Person)(objectclass=User))" attribute1 attribute2 etc hth Marcin "RBoyle" <ryan.j.boyle.cpg@gmail.com> wrote in message news:408be380-30b5-488c-8466-84d2f39cd1e6@j35g2000yqh.googlegroups.com... > Hey everyone, > > I want to write the following LDAP query against my 03 Active > Directory. > > I want to write it so that it lists all of the servers within the > directory. > > Here are the components that I want to list (so I can do an export of > this information) > > From the users general tab: > > 1. Name > 2. Office > 4. Phone Number > 5. Email > > From the users Address tab: > > All of the fields > > From the users Telephones tab: > > All of the fields > > From the Organization tab: > > All of the fields > > From Profile > > All of the fields > > ------- > > Thanks in advance everyone for your help - greatly appriciated on this > end. > > Ryan |
|
#3
| |||
| |||
| Re: LDAP Query to show all users within multiple OUs
Ryan wrote: > > I want to write the following LDAP query against my 03 Active > Directory. > > I want to write it so that it lists all of the servers within the > directory. > > Here are the components that I want to list (so I can do an export of > this information) > > From the users general tab: > > 1. Name > 2. Office > 4. Phone Number > 5. Email > > From the users Address tab: > > All of the fields > > From the users Telephones tab: > > All of the fields > > From the Organization tab: > > All of the fields > > From Profile > > All of the fields > > ------- > > Thanks in advance everyone for your help - greatly appriciated on this > end. > For the attribute names corresponding to the fields in ADUC see the first spreadsheet in this link: http://www.rlmueller.net/UserAttributes.htm You can use Joe Richards' free adfind utility to retrieve these attribute values for all users: http://www.joeware.net/freetools/tools/adfind/index.htm Or you can use the W2k3 utilities dsquery or dsget. Or, you can use ADO in a VBScript program. See this link for details: http://www.rlmueller.net/ADOSearchTips.htm You can expand the example in the link by adding to the comma delimited list of attribute values to retrieve, using the attribute names in the spreadsheet linked above. I'm not sure what you mean by all servers. If in addition to documenting all users you want to document all servers, here is a link to a VBScript program: http://www.rlmueller.net/Enumerate%20Servers.htm -- Richard Mueller MVP Directory Services Hilltop Lab - http://www.rlmueller.net -- |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "LDAP Query to show all users within multiple OUs" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| LDAP Query AD | Active Directory | 7 | 03-06-2010 12:23 PM | |
| LDAP query to speficied LDAP server on TCP port 389 failed | Shash | Windows Server Help | 1 | 29-05-2009 10:46 PM |
| LDAP query | rob davis | Active Directory | 3 | 11-12-2008 02:09 AM |
| LDAP query can it be done ? | zscw1 | Active Directory | 4 | 13-11-2008 10:08 AM |
| LDAP Query | Anzelem | Window 2000 Help | 3 | 07-02-2008 10:23 PM |