Riva CRM Integration - Documentation and Knowledge Base

How to Mail-enable Active Directory Contacts in Exchange

Article ID: 98
Last updated: 24 Aug, 2010
This link describes how to mail-enable an Active Directory contact object in Exchange: http://technet.microsoft.com/en-us/library/bb124237.aspx. It explains how to do a single one individually through the Exchange Management Console, and how to use Powershell to do it. With Powershell, you can easily mail-enable all the contacts in an organization unit with one command like this:
 
get-contact -organizationalunit testou -RecipientTypeDetails Contact -Filter 'WindowsEmailAddress -ne $null' |
 foreach { enable-mailcontact -Identity $_ -ExternalEmailAddress $_.WindowsEmailAddress.toString() }
 
This will enable any contact object that hasn't already been mail-enabled and that has a non-empty 'mail' attribute. It will search the entire 'testou' subtree. The only thing that your Exchange administrator needs to modify is the value for the -organizationalunit parameter from testou to the OU in your AD tree.
 
If you install the Exchange Management tools on the Riva server, you can include this command in the same batch file the executes Riva, so that any contacts that have been added by Riva become mail-enabled.
Article ID: 98
Last updated: 24 Aug, 2010
Revision: 1
Views: 20704