| Author |
Message |
m.damen
Guest
|
Posted:
Wed Dec 14, 2005 5:58 pm Post subject:
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
|
|
| Back to top |
|
 |
Glen Scales [MVP]
Guest
|
Posted:
Thu Dec 15, 2005 1:59 am Post subject:
Re: Enumerate "Automatically update e-mail addresses based o |
|
|
Have a look at
http://www.exchangefaq.org/faq/Exchange-2003/Administration/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.googlegroups.com...
| Quote: | 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
|
|
|
| Back to top |
|
 |
m.damen
Guest
|
Posted:
Thu Dec 15, 2005 9:58 am Post subject:
Re: Enumerate "Automatically update e-mail addresses based o |
|
|
Glen,
This is working perfectly, thanks a bunch!
Little sidenote: the users mailbox must exist in order to set this
property.
Regards,
Maarten
|
|
| Back to top |
|
 |
|
|
|
|