“There are no limits to what you can accomplish when you are supposed to be doing something else."

Menu

Converting SMTP Proxy Addresses to Lowercase

Update: Be aware, this script has not been tested with SIP, X400 or other address types. I am working on an update to validate these scenarios, but in the meantime, proceed at your own risk with these address types.

I recently encountered a question in an online forum where someone asked for a script to convert all of their user’s email addresses to lower case values. While this doesn’t affect the message delivery, it can have an impact on aesthetics when the address is displayed in an external recipient’s email client. An Exchange Email Address Policy can do this to some degree, but I wanted to see how it could be done with PowerShell.

The challenge with a script like this is twofold:

Email addresses (proxy addresses) are a multi-valued attribute, which can be tricky to work with.

PowerShell is generally not case-sensitive, and therefore when we try to rename Mr. Gallalee’s email address in the screenshot below, we can see that it does not work:

After a little bit of inspiration from a script written by Michael B Smith, I came up with the below:

7 thoughts on “Converting SMTP Proxy Addresses to Lowercase”

Thanks Mike, this looks like it will do excactly what our Director wants done to our 1800+ address’. Before I run this against our environment is there a way I can test it on a couple of accounts forst? I’m thinking by adding the account after Get-Mailbox and removing the resultsize I should be able to run it against one account.

Hi All, Just in case anyone finds this wondering on how to keep their x500 and x400 addresses which are extremely important if you have migrated users from other servers etc. I have adjusted the script and posted below to also include X500 and X400 addresses. Ran this over a 500 user exchange server and all OK 🙂 happy days.