Post by Liz RealI work for a private university in California and I am trying to find out if
it is possible to track how many of our students are forwarding email
off-campus. I read that the targetaddress attribute can be used to accomplish
this task.
I appreciate any help on this.
I don't have Exchange so I cannot test, but it appears the value of this
attribute is used to redirect email when the intended recipient is
unavailable. You should be able to use ADO in a VBScript program to retrieve
information on all users that have a value assigned to this attribute. See
this link for details:
http://www.rlmueller.net/ADOSearchTips.htm
Using the syntax from this link, the search filter would be:
strFilter = "(&(objectCategory=person)(objectClass=user)(targetAddress=*))"
You could retrieve user names (sAMAccountName or distinguishedName), or just
count the number of users that have a value assigned to targetAddress. You
could also retrieve the value of targetAddress.
Note that the same filter,
(&(objectCategory=person)(objectClass=user)(targetAddress=*)), can be used
with command line tools like dsquery and Joe Richards' adfind. For more on
adfind see this link:
http://joeware.net/freetools/tools/adfind/index.htm
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--