Solved

Query Accounts with Automatically update email addresses based on recipient policy Unchecked

Posted on 2007-03-30
1
1,715 Views
Last Modified: 2008-05-30
Is there a way I can query accounts that do not have the following attribute checked on a computer with Active Directory and Exchange?

“Automatically update email addresses based on recipient policy” found in an account’s properties E-mail addresses tab.

I want to get a list of users that do not have that option checked.
0
Comment
Question by:CecilAdmin
1 Comment
 
LVL 30

Accepted Solution

by:
LauraEHunterMVP earned 500 total points
ID: 18824843
Use adfind from joeware (command-line tool from www.joeware.net) to query on the msExchPoliciesExcluded attribute. Under normal circumstances, this attribute is <Not Set>, so you just need to query for any user object that has a value set for that attribute. (You'll also want to query on any user that has proxyAddresses set to exclude objects that aren't mail-enabled to begin with.)

For example, you can query your whole domain as follows:

adfind -default -f "(&(objectcategory=person)(objectclass=user)(proxyAddresses=*)(msExchPoliciesExcluded=*))"

If you want, you can pipe these results into admod (also from www.joeware.net) to clear the msExch... attribute if that is your end goal. I'm doing this off the top of my head, but the syntax will look something like this: (both adfind and admod have extensive help screens to assist you in producing the syntax you need.)

adfind -default -f "(&(objectcategory=person)(objectclass=user)(proxyAddresses=*)(msExchPoliciesExcluded=*))" -dsq | admod msExchPolicies:-

Hope this helps.

Laura E. Hunter - Microsoft MVP: Windows Server - Networking
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question