Clearing Automatically Update email policies based on recipient policies in code

Clearing Automatically Update email policies based on recipient policies in code

Post by John » Sat, 01 Feb 2003 01:22:22



I am using code

    Set x = GetObject(userPath)
    x.PutEx ADS_PROPERTY_CLEAR, "msExchPoliciesExcluded", vbNullString
    x.SetInfo

to try to clear the Automatically update email policies based on recipient
policies checkbox  on the E-mail addresses tab in AD.

When I run the code the checkbox is CHECKED not cleared. Anyone know how to
clear this checkbox value in code.

John

 
 
 

Clearing Automatically Update email policies based on recipient policies in code

Post by Srinivasul » Sun, 02 Feb 2003 00:51:24


If msExchPoliciesExcluded is not set the check box weill be selected.
You have to set msExchPoliciesExcluded to
{26491CFC-9E50-4857-861B-0CB8DF22B5D7}
to clear the check box.

Check the knowledge base article # 318072 for more details

regards
Srinu