Script Download:FixDuplicateMailAddresses.zip
http://gallery.technet.microsoft.com/scriptcenter/Fix-Duplicate-Email-525089e4

This script is used to fix duplicate Email addresses for on-premises mail-enabled objects

This script enables you to export mail-enabled objects with duplicated email addresses. After correcting the attributes for these groups, you can use this script to import them to your on-premises Active Directory.

image image
image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery