|
I am wondering if I am reading that filter
incorrectly....
(&
(mailnickname=*) (| (& (objectCategory=person) (objectClass=user) (! (homeMDB=*) ) (! (msExchHomeServerName=*) ) ) (& (objectCategory=person) (objectClass=user) (| (homeMDB=*) (msExchHomeServerName=*) ) ) ) ) It seems to be looking for any user with the
mailnickname set which is obviously easier written as
(&(objectcategory=person)(objectclass=user)(mailnickname=*)).
The other parts basically say
User without homemdb and without ms exch server
name
OR
User with homemdb or ms exch server
name
Which wouldn't that be ANY user? So it translates
overall to any user with mailnickname.
Did I blow it?
-------------
http://www.joeware.net (download joeware)
http://www.cafeshops.com/joewarenet (wear joeware)
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mulnick, Al Sent: Wednesday, March 17, 2004 4:35 PM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] running a user query Just having data in the mail attribute is not neccessarily
an indication that they have a mailbox. That could have been put in
manually or that object could be a contact or a non-mailbox-enabled user entity
etc.
Look for a search criteria that looks for more than one
attribute such as homeMDB & mail both having an attribute and an
objectcategory of person & objectClass of User. You may want to add in
there that the search criteria must also find msExchHomeServerName must
have data as well.
You may then want to return the users that match the
criteria, the homeMDB and or the msExchHomeServerName in the report.
Here's the default GAL search criteria for building all
users (mailbox-enabled user objects) in Exchange for
reference.
(& (mailnickname=*) (|
(&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*)))
))
From: Creamer, Mark [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 2:33 PM To: [EMAIL PROTECTED] Subject: [ActiveDir] running a user query I need to get some information on all of our users for a manager here. I have a script I can alter to get the information, but can I assume that if the user has a value in the "mail" attribute that he or she has an Exchange account? What the manager ultimately wants is a list of all users, and whether or not there is a mailbox associated with them. Thanks!
Mark Creamer Systems Engineer Cintas Corporation Honesty and Integrity in Everything We Do
|
- [ActiveDir] running a user query Creamer, Mark
- RE: [ActiveDir] running a user query joe
- [ActiveDir] Event Log best practices J0mb
- RE: [ActiveDir] running a user query Mulnick, Al
- RE: [ActiveDir] running a user query Mulnick, Al
- RE: [ActiveDir] running a user query Creamer, Mark
