Change Microsoft 365 Email Addresses to Lowercase with PowerShell
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.

- 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.
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.
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.
Open PowerShell with the ExchangeOnlineManagement module installed and run Connect-ExchangeOnline. Sign in with an account that can view the mailbox.
Run Get-Mailbox -Identity 'user@example.com' | Format-List UserPrincipalName,PrimarySmtpAddress,EmailAddresses, replacing the example with the user's address.
Review PrimarySmtpAddress and the entry beginning with uppercase SMTP:. If the address differs only in letter case, no change is normally needed for delivery.

Update the Primary Mailbox Proxy Address
Use Exchange Online PowerShell when the primary mailbox address itself needs to change, rather than just the sign-in name.
Change the Microsoft 365 User Principal Name
Use Microsoft Graph PowerShell when the sign-in name needs to change; this does not necessarily change the mailbox proxy address.
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.

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.




