Title: listing all email addresses with adfind
Assuming you just want email addresses I might sweeten that a little more by
 
adfind -gc -b -f "proxyaddresses=smtp:*" proxyaddresses | grep -i smtp
 
 
With the newest version of adfind (V1.26.00), internal consumption only right now, this could further be sweetened with
 
adfind -gc -b -nolabel -nodn -f "proxyaddresses=smtp:*" proxyaddresses | grep -i smtp
 
which would strip off the >proxyaddresses that would be on every line.
 
I know there is a command that could be used to strip the smtp: off of it as well but I can't seem to recall my unix commands right now. I haven't been using the command line enough lately, doing consulting instead of real work is making me lose my superpowers. Next thing you know I won't be able to leap tall buildings in a single bound. The addresses should all be unique, but in the case that you would get hurt if they aren't with whatever you are feeding this to you could send the output into a unique command and have it pop out the other side sorted and guaranteed unique. I am not sure if you can dig one of those up on the internet right now, probably can, but worst case I have one I wrote that isn't on my website.
 
 
  joe
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith
Sent: Friday, January 28, 2005 3:21 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] listing all email addresses with adfind

adfind -gc -b -f "proxyaddresses=smtp:*" proxyaddresses
 
Here is a little script I wrote that might help some:
http://blogs.brnets.com/michael/archive/2004/12/30/275.aspx
 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Creamer, Mark
Sent: Friday, January 28, 2005 3:11 PM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] listing all email addresses with adfind

I want to come up with a list of all the smtp email addresses our GC knows about, regardless of the different classes of objects. E.g. there would be email addresses for users, public folders, etc. How could I form a query to return all of these addresses using ADFind?

Thanks!

Mark


This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated. Thank you. Cintas Corporation.

Reply via email to