Re: track targetAddress attribute
- From: Liz Real <LizReal@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Nov 2007 15:15:01 -0800
I was able to open the tool in the command prompt, thanks for the help. Now
to the next step, how do I run this filter?
(&(objectCategory=person)(objectClass=user)(targetAddress=*))
in order to find out how many students have a forward set to off campus
addresses?
"Brian Desmond [MVP]" wrote:
If you run adfind from a command prompt you won't have issues with it.
opening/closing :)
--
Thanks,
Brian Desmond
Windows Server MVP - Directory Services
www.briandesmond.com
"Liz Real" <LizReal@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C16764D8-AD23-466F-99A5-0D8E043968ED@xxxxxxxxxxxxxxxx
Thank you Richard for the suggestion. To be honest I do not have much
experience with VBscript.
I downloaded the command line tool adFind from
http://joeware.net/freetools/tools/adfind/index.htm, ran it but it
opens/closes so fast i can't even read what it says.
any suggestions? i greatly appreciate it.
"Richard Mueller [MVP]" wrote:
Liz Real wrote:
I 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
--
- Follow-Ups:
- Re: track targetAddress attribute
- From: Richard Mueller [MVP]
- Re: track targetAddress attribute
- Prev by Date: Re: GP update
- Next by Date: Active Directory Groups Question
- Previous by thread: Re: GP update
- Next by thread: Re: track targetAddress attribute
- Index(es):
Relevant Pages
|
Loading