| Author |
Message |
Rudy Steyaert
Guest
|
Posted:
Sat Dec 18, 2004 9:42 pm Post subject:
Basic script question |
|
|
I need to find a recipient, based on the smtp e-mail address in active
directory.
How can this be done from vbscript ? If possible at all.
TIA
Rudy Steyaert
|
|
| Back to top |
|
 |
Tom Rizzo [MSFT]
Guest
|
Posted:
Sat Dec 18, 2004 11:11 pm Post subject:
Re: Basic script question |
|
|
Sure. You can use ADSI to send a query to your AD that filters by SMTP
address. You may want to just search on ADSI and SMTP on the web for a
sample.
Tom
--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp
"Rudy Steyaert" <rudy_steyaert@hotmail.com> wrote in message
news:O78IwhR5EHA.3648@TK2MSFTNGP11.phx.gbl...
| Quote: | I need to find a recipient, based on the smtp e-mail address in active
directory.
How can this be done from vbscript ? If possible at all.
TIA
Rudy Steyaert
|
|
|
| Back to top |
|
 |
Rudy Steyaert
Guest
|
Posted:
Sat Dec 18, 2004 11:22 pm Post subject:
Re: Basic script question |
|
|
Well, I'm searching right now. Did not find anything usable yet. I had
half a solution, but was wrestling with the fact that the proxyaddresses is
a multi-value field hence I can't use it in a select.
Went to the bookshop this afternoon to look if it was in your book. It was
available, but it was so crowdy in there due to Christmas shopping I could
not concentrate on it. Should I find it in your book ? I'll take a deeper
look into it again next week on a quiter moment in the shop :-)
Thanks
Rudy Steyaert
"Tom Rizzo [MSFT]" <thomriz@microsoft.com> wrote in message
news:uB6MrSS5EHA.3368@TK2MSFTNGP10.phx.gbl...
| Quote: | Sure. You can use ADSI to send a query to your AD that filters by SMTP
address. You may want to just search on ADSI and SMTP on the web for a
sample.
Tom
--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp
"Rudy Steyaert" <rudy_steyaert@hotmail.com> wrote in message
news:O78IwhR5EHA.3648@TK2MSFTNGP11.phx.gbl...
I need to find a recipient, based on the smtp e-mail address in active
directory.
How can this be done from vbscript ? If possible at all.
TIA
Rudy Steyaert
|
|
|
| Back to top |
|
 |
Martin Norrsken
Guest
|
Posted:
Sun Dec 19, 2004 10:16 pm Post subject:
Re: Basic script question |
|
|
I'll leave the ADSI implementation to you, but the search filter should
look something like this:
Search the proxyAddress field:
(proxyAddresses=smtp:email@somewhere.com)
or you can use wildcards too
To search both mail and proxy:
(|(mail=email@somewhere.com)(proxyAddresses=smtp:email@somewhere.com)) |
|
| Back to top |
|
 |
Rudy Steyaert
Guest
|
Posted:
Sun Dec 19, 2004 10:21 pm Post subject:
Re: Basic script question |
|
|
Thanks, I'll try that. Just new to ADSI, but it looks promising.
See you!
"Martin Norrsken" <martin.norrsken@gmail.com> wrote in message
news:1103472984.875482.24810@c13g2000cwb.googlegroups.com...
| Quote: | I'll leave the ADSI implementation to you, but the search filter should
look something like this:
Search the proxyAddress field:
(proxyAddresses=smtp:email@somewhere.com)
or you can use wildcards too
To search both mail and proxy:
(|(mail=email@somewhere.com)(proxyAddresses=smtp:email@somewhere.com))
|
|
|
| Back to top |
|
 |
|
|
|
|