Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2007-03-30
1
Medium Priority
?
1,737 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 30

Accepted Solution

by:
LauraEHunterMVP earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

705 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