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.