As I read through this whole thread there was a couple of other things I
noticed if you don't mind if I ramble for a bit...
Objectcategory=user doesn't exist, that will be converted to
objectcategory=person, see below on what that will do for you.
ObjectClass=user is even worse. What happens
If you need to cross OU's, you may want to iterate through OU's and for each
OU follow that path. Might be helpful to spit out some information linking
the addresses to the user's samaccountname or UPN as well, just for linking
the user to the address.
Al
-Original Message-
From: [EMAIL
Something like
Example: Export of specific domain with credentials
csvde -m -f OUTPUT.CSV
-b USERNAME DOMAINNAME *
-s SERVERNAME
-d cn=users,DC=DOMAINNAME,DC=Microsoft,DC=Com
-r (objectClass=user)
Csvde -m -f OUTPUT.CSV -d dc=domainname,dc=com -r
Or better yet, combine what Al said and what I said, like this:
Csvde -m -f OUTPUT.CSV -d dc=domainname,dc=com -r
((objectclass=User)(objectcategory=person)(mail=*)) -l mail,proxyaddresses
That way you get only the attributes you want, and then only for people who actually
have mail addresses.
The -l params is a nice touch but curious why you want to find objectClass
objects. That's an inefficient query IIRC. Plus, if you return each person
in the directory (you should start at a higher node to supply an answer to
his request which is to find ALL users in the domain; if he had them
Objectcategory is indexed (objectclass is not), so objectcategory=person is more
efficient. Contacts have an objectcategory of person as well, though, so if you use
only objectcategory=person you get both users and contacts. By using both in an AND,
you get only users.
The part about where
Thanks for the clarification. That helps tremendously!
Al
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Fugleberg, David A
Sent: Wednesday, May 26, 2004 12:18 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Can LDP be used to create email report of
Hi Al. :o)
(objectcategory=person)(objectclass=user) is a good filter though it
wouldn't catch inetorgpersons. Slightly better may be
(objectcategory=person)(samaccountname=*) if you have contact objects or
you have inetorgpersons you want to catch as well as user objects. If you
have no
Hi Joe.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of joe
Sent: Wednesday, May 26, 2004 2:25 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Can LDP be used to create email report of all use
rs in AD?
Hi Al. :o)