Enumerate "Automatically update e-mail addresses based on re
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Enumerate "Automatically update e-mail addresses based on re

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
m.damen
Guest





Posted: Wed Dec 14, 2005 5:58 pm    Post subject: Enumerate "Automatically update e-mail addresses based on re Reply with 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
Glen Scales [MVP]
Guest





Posted: Thu Dec 15, 2005 1:59 am    Post subject: Re: Enumerate "Automatically update e-mail addresses based o Reply with quote

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 Reply with quote

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
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB