Results 1 to 3 of 3

Thread: Enumerate "Automatically update e-mail addresses based on re

  1. #1
    m.damen Guest

    Enumerate "Automatically update e-mail addresses based on re

    Dear newsgroup,

    I developed a c# application to automate the process of creating new
    users in our active directory aswell as adding a mailbox to this user
    etc. Everything is working fine sofar.
    What I want to do now is to "uncheck" the "Automatically update e-mail
    addresses based on recipient policy" for the user object. Does anybody
    have a clue how I can automate this task?

    Best regards,
    Maarten Damen

  2. #2
    Glen Scales [MVP] Guest
    Have a look at
    http://www.exchangefaq.org/faq/Excha...sectionID/1031
    "Automatically update e-mail addresses based on recipient policy" on all
    users or contacts?

    In C# something like this should work

    DirectoryEntry DE = new DirectoryEntry("LDAP://userdn");
    DE.Properties["msExchPoliciesExcluded"].Value =
    "{26491CFC-9E50-4857-861B-0CB8DF22B5D7}";
    DE.Properties["msExchPoliciesIncluded"].Value =
    "{26491CFC-9E50-4857-861B-0CB8DF22B5D7}";
    DE.CommitChanges();

    Cheers
    Glen

    "m.damen" <m.damen@gmail.com> wrote in message
    news:1134572185.025752.320230@z14g2000cwz.googlegr oups.com...
    Dear newsgroup,

    I developed a c# application to automate the process of creating new
    users in our active directory aswell as adding a mailbox to this user
    etc. Everything is working fine sofar.
    What I want to do now is to "uncheck" the "Automatically update e-mail
    addresses based on recipient policy" for the user object. Does anybody
    have a clue how I can automate this task?

    Best regards,
    Maarten Damen

  3. #3
    m.damen Guest
    Glen,

    This is working perfectly, thanks a bunch!
    Little sidenote: the users mailbox must exist in order to set this
    property.

    Regards,
    Maarten

Similar Threads

  1. Replies: 1
    Last Post: 11-26-2005, 09:58 AM
  2. Replies: 1
    Last Post: 11-26-2005, 09:58 AM
  3. Replies: 2
    Last Post: 07-27-2005, 09:58 AM
  4. Replies: 6
    Last Post: 07-26-2005, 04:07 PM
  5. Replies: 3
    Last Post: 05-16-2005, 06:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - CAD Forum