Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Exchange Server / Development / July 2004

Tip: Looking for answers? Try searching our database.

Get all E-mail addresses for Active Directory user

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 29 Jul 2004 19:33 GMT
Hi all!
I want to get all E-mail addresses (which are shown on the
properties of the Active Directory user account)
How can I do that?
I've made the filter to get Users ,but how to retrieve all
e-mail addresses (SMTP,X-400 and others)of the Active
directory user?

I can't get any association API/property between user
Active Directory and their mailboxes.

Please help.
Glen Scales [MVP] - 30 Jul 2004 01:54 GMT
If you just want to export these address's you could look at using LDIFDE or
CSVDE otherwise you can get it via ADSI by looking at the proxyAddresses
attribute of the user object. This is multi-valued attribute so you need to
use Getex to go though all the entires for eg

Cheers
Glen

userDN =  "CN=user,CN=Users,DC=yourdomain,DC=com"
qsting = "LDAP://" & userDN
set objUser = GetObject(qsting)
Proxies = objUser.GetEx("proxyAddresses")
For i = LBound(Proxies) To UBound(Proxies)
   wscript.echo Proxies(i)
Next

> Hi all!
> I want to get all E-mail addresses (which are shown on the
[quoted text clipped - 8 lines]
>
> Please help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.