Contact Problems

Change Microsoft 365 Email Addresses to Lowercase with PowerShell

Chanuka GeekiyanageChanuka Geekiyanage Nov 25, 2026 869 views

Question details

The user wants to make Microsoft 365 mailbox email addresses lowercase and understand whether changing the sign-in name also changes the mailbox address.

Change Microsoft 365 Email Addresses to Lowercase with PowerShell
Product
Microsoft 365 and Exchange Online PowerShell
Device & OS
not provided
Scenario
A Microsoft 365 administrator is reviewing user principal names and mailbox email addresses.
Observed behavior
Changing the user principal name worked, but the mailbox email address did not change. Setting WindowsEmailAddress also appeared to run without changing the address.
Before you start

Identify whether you need to change the sign-in name, the primary SMTP address, or only its displayed capitalization. Use an account with the appropriate Microsoft 365 or Exchange permissions, and check whether the user is synchronized from on-premises Active Directory.

Solution 1Recommended

Check the Mailbox Address Before Changing Its Capitalization

Use this recommended check when the only concern is uppercase letters in an existing email address.

Email address capitalization normally does not affect mail delivery, so a case-only change is usually unnecessary. The uppercase SMTP prefix in Exchange identifies the primary address; it is not part of the address itself.

1
Connect to Exchange Online

Open PowerShell with the ExchangeOnlineManagement module installed and run Connect-ExchangeOnline. Sign in with an account that can view the mailbox.

2
Inspect the addresses

Run Get-Mailbox -Identity 'user@example.com' | Format-List UserPrincipalName,PrimarySmtpAddress,EmailAddresses, replacing the example with the user's address.

3
Compare the values

Review PrimarySmtpAddress and the entry beginning with uppercase SMTP:. If the address differs only in letter case, no change is normally needed for delivery.

Check the Mailbox Address Before Changing Its Capitalization
A case-only update may not persist: Microsoft 365 may treat an address that differs only by capitalization as unchanged. Do not rely on a case-only update to alter how the address is displayed everywhere.
Free Microsoft Office alternative

Use WPS Office for Everyday Documents and Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface and compatibility with Microsoft Office formats, making it easy to move everyday document work. Microsoft 365 mailbox and proxy address administration still requires Microsoft tools.

Review address lists in WPS Spreadsheets while planning mailbox updatesOpen and edit Microsoft Excel XLSX, Word DOCX, and PowerPoint PPTX filesUse a familiar interface for everyday office tasksMove existing Office files into a lightweight workspace
microsoft office alternative - wps office

Frequently Asked Questions

Does changing a user principal name change the mailbox email address?

Not necessarily. Check the sign-in name with Get-MgUser and the mailbox's PrimarySmtpAddress and EmailAddresses with Get-Mailbox.

Does capitalization affect email delivery?

Email addresses are normally treated as case-insensitive for delivery, so changing only capitalization is usually unnecessary.

Why is the primary address marked with uppercase SMTP?

In the Exchange EmailAddresses collection, uppercase SMTP: identifies the primary SMTP proxy. Lowercase smtp: identifies a secondary SMTP proxy; the prefix is not part of the email address.

Why didn't WindowsEmailAddress change the primary proxy address?

WindowsEmailAddress alone may not update the primary proxy. Inspect the EmailAddresses collection with Get-Mailbox and use Set-Mailbox -EmailAddresses when an Exchange Online proxy update is appropriate.

Can I still use Set-MsolUserPrincipalName?

The MSOnline PowerShell module is retired. Use Microsoft Graph PowerShell's Update-MgUser for cloud-managed UPN changes, or update the authoritative on-premises directory for synchronized users.