Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to check/uncheck "Automatically update e-mail addresses based on recipient policy", How to clear: msExchPoliciesExcluded using PowerShell V2

$
0
0

Hi All,

 

I figured out how to get a list of email enabled user objects that have the "Automatically update e-mail addresses based on recipient policy" checkbox unchecked.

 

The following ldap query results in a list that I can then export to csv using PowerShell:

      "(&(objectCategory=User)(msExchPoliciesExcluded={26491CFC-9E50-4857-861B-0CB8DF22B5D7 })(!(userAccountControl:1.2.840.113556.1.4.803:=2)))"

 

My task is to identify accounts that have this unchecked and then turn it back on for a subset of them using a csv or other similar methods.

 

I have created a csv using the ldap query above, then removed the ones that does not need to be changed.

 

Could someone help with explaining how to clear that attribute?

Is it enough to clear it and then RUS will do the rest or do I need set this value as an included policy?

 

The environment is Windows Server 2003 and Exchange 2003.

 

Thanks in advance,

Bertalan


Viewing all articles
Browse latest Browse all 15028

Trending Articles