Exchange E-mail Address Policy – Force lowercase email address and change current

Since the policy grabs data from AD in whatever case it is in, you need to apply this custom prefix, which basically says Replace A for a, B for b etc


You can use this with thusly:

Sweet.  But it will not change the case of current email addresses.  Dunno why.

For this you can use this powershell PS1 script

$MailboxList = Get-Mailbox -ResultSize unlimited

$MailboxList | % {

$LoweredList = @()
$RenamedList = @()

foreach ($Address in $_.EmailAddresses){
if ($Address.prefixstring -eq "SMTP"){
$RenamedList += $Address.smtpaddress + "TempRename"
$LoweredList += $Address.smtpaddress.ToLower()
Set-mailbox $_ -emailaddresses $RenamedList -EmailAddressPolicyEnabled $false
Set-mailbox $_ -emailaddresses $LoweredList

#Without this line the "Reply To" Address could be lost on recipients with more than one proxy address:
Set-mailbox $_ -PrimarySmtpAddress $_.PrimarySmtpAddress
This entry was posted in IT Stuff. Bookmark the permalink.