Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LDAP Query/Recipient Policy

203 views
Skip to first unread message

GovAdminGuy

unread,
Nov 26, 2007, 12:41:02 PM11/26/07
to
Do you know how (LDAP Query or another method) to obtain the list of all
users with the following attribute set:
“Automatically update e-mail addresses based on Recipient Policy”

Carlos Prado

unread,
Nov 26, 2007, 2:02:24 PM11/26/07
to
If you are using Exchange 2007, then use the Exchange Management Shell
command:

get-mailbox | where {$_.EmailAddressPolicyEnabled -like "True"}

or if using just Exchange 2003, then the command will be a little more in
depth. Let me know if you need one for EX2K3. It will make a nice
practical application of PowerShell for me to figure out.

--Carlos

"GovAdminGuy" <GovAd...@discussions.microsoft.com> wrote in message
news:8BCB6B31-E476-47CA...@microsoft.com...

Bharat Suneja [MVP]

unread,
Nov 26, 2007, 2:05:12 PM11/26/07
to
(&(mailNickname=*)(msExchPoliciesExcluded={26491CFC-9E50-4857-861B-0CB8DF22B5D7}))
--
Bharat Suneja
MVP - Exchange
www.zenprise.com
NEW blog location:
exchangepedia.com/blog
----------------------------------------------


"GovAdminGuy" <GovAd...@discussions.microsoft.com> wrote in message
news:8BCB6B31-E476-47CA...@microsoft.com...

GovAdminGuy

unread,
Nov 26, 2007, 2:23:01 PM11/26/07
to
We are running Exchange 2003...thanks for your help

GovAdminGuy

unread,
Nov 26, 2007, 4:22:02 PM11/26/07
to
Can I get all the users that have that attribute? Negate the query below?

Bharat Suneja [MVP]

unread,
Nov 26, 2007, 4:38:44 PM11/26/07
to
Not sure what you mean...

Recipients with that value in the msExchPoliciesExcluded attribute will not
have email addresses managed by Recipient Policies.

If you use that query in ADUC Saved Queries/CSVDE/LDIFDE/Exchange Address
Lists, it will get you all recipients for which email addresses are not
being managed by policy.

To get all recipients who are managed by policy, simply change the
following:
(msExchPoliciesExcluded={26491CFC-9E50-4857-861B-0CB8DF22B5D7})

to:
(!msExchPoliciesExcluded={26491CFC-9E50-4857-861B-0CB8DF22B5D7})

To restrict it to mailbox-enabled users, add (objectClass=user)(homeMDB=*)
to it, so it looks like:
(&(mailNickname=*)(objectClass=user)(homeMDB=*)(msExchPoliciesExcluded={26491CFC-9E50-4857-861B-0CB8DF22B5D7}))

--
Bharat Suneja
MVP - Exchange
www.zenprise.com
NEW blog location:
exchangepedia.com/blog
----------------------------------------------


"GovAdminGuy" <GovAd...@discussions.microsoft.com> wrote in message

news:F847944B-B79D-4919...@microsoft.com...

0 new messages