Avatar of grsg
grsg
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Remove caps from an email address

I have SBS 2011 running Exchange 2010.  The email addresses have capital letters in their Christian names and surnames, e.g., JoeBloggs@mydomain.com.  How would I go about removing the caps so the address reads joebloggs@mydomain.com?
ExchangeSBS

Avatar of undefined
Last Comment
VB ITS

8/22/2022 - Mon
VB ITS

After some searching online, I managed to find this script. All credit goes to Mike Crowley.
$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
}

Open in new window

Source article: http://mikecrowley.wordpress.com/2012/05/14/converting-smtp-proxy-addresses-to-lowercase/
grsg

ASKER
Thanks for the script, though I'm nervous about running code I don't fully understand.  I only have a handful of mailboxes, do you know how I could make the changes manually?
ASKER CERTIFIED SOLUTION
VB ITS

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
grsg

ASKER
Excellent, does just what it says on the can.  Many thanks
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
VB ITS

Glad I could help :)