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 original note I sent would return a line for every user 
whether they have mail or not, and Al's original would return all attributes for 
anyone with mail.  The combination above should give you what I 'think' you want.

Dave
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mulnick, Al
Sent: Wednesday, May 26, 2004 10:25 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Can LDP be used to create email report of all
use rs in AD?


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
"(&(objectCategory=User)(mail=*))" should give you the right users.  You
could sub proxyAddresses for mail. 

The command would look like

C:\>csvde -m -f c:\output.csv -s servername(if wanted) -d "dc=domain,dc=com"
-r "(&(objectcategory=user)(proxyaddresses=*))"

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Grantham, Caron
Sent: Wednesday, May 26, 2004 10:55 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Can LDP be used to create email report of all users
in AD?

They only have one address, I'm trying to figure out the correct syntax for
a CSVDE export, do you know?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Passo, Larry
Sent: Wednesday, May 26, 2004 9:45 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Can LDP be used to create email report of all users
in AD?

If your users have more than one email address, you will also need to get
the proxyAddresses attribute.

-----Original Message-----
From: Grantham, Caron [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 7:35 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] Can LDP be used to create email report of all users in
AD?


I'm looking for a way to get an email address report for all user
objects in Active Directory. Any idea on how to do this? I see the mail
attribute in LDP but how can I get just this one field filtered out into
a report 

Thanks
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to