Fix Exchange Online Automatic Replies for Duplicate Display Names
Question details
Configure automatic replies for an Exchange Online mailbox when multiple recipients share the same display name.

- Product
- Exchange Online and Microsoft 365 admin center
- Device & OS
- not provided
- Scenario
- An administrator needs to set an automatic reply for a user whose display name matches multiple recipients.
- Observed behavior
- The Microsoft 365 admin center may be unable to identify the intended mailbox and configure its automatic reply.
Confirm the intended mailbox's primary email address and sign in with an account authorized to manage its automatic replies. You will need PowerShell and the Exchange Online PowerShell module.
Configure the automatic reply with a unique mailbox address
Use Exchange Online PowerShell to target the mailbox by its unique email address instead of its display name.
Open PowerShell and run Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser if the module is not already installed.
Run Connect-ExchangeOnline and sign in with an account that can manage the mailbox.
Replace the address and messages in this command, then run it: Set-MailboxAutoReplyConfiguration -Identity user@contoso.com -AutoReplyState Enabled -InternalMessage "Internal auto-reply message." -ExternalMessage "External auto-reply message." -ExternalAudience All
Run Get-MailboxAutoReplyConfiguration -Identity user@contoso.com, using the same mailbox address, and check the state and messages.
If the mailbox is still ambiguous, run Get-Recipient -ResultSize Unlimited | Where-Object {$_.DisplayName -eq 'Alex Smith'} | Format-Table Name,RecipientType,PrimarySmtpAddress,Identity -AutoSize. Replace Alex Smith with the shared display name and check the results for the intended mailbox.
Draft Automatic Reply Messages in WPS Office
WPS Office is a free, lightweight alternative for drafting and sharing office documents with a familiar interface and compatible formats for an easy transition. It does not change Exchange Online mailbox settings.

Frequently Asked Questions
Why does a duplicate display name cause an automatic reply error?
A display name can match more than one recipient, making it ambiguous. Use the intended mailbox's unique email address with the -Identity parameter in Set-MailboxAutoReplyConfiguration.
How can I check the automatic reply after setting it?
Run Get-MailboxAutoReplyConfiguration -Identity user@contoso.com in a connected Exchange Online PowerShell session, replacing the address with the mailbox's email address.
How do I find recipients with the same display name?
In Exchange Online PowerShell, use Get-Recipient and filter the results by DisplayName. Compare the recipient types and primary SMTP addresses to identify the intended mailbox.
Can I send an automatic reply only to people inside the organization?
Set the internal message and use -ExternalAudience None with Set-MailboxAutoReplyConfiguration to disable replies to external senders.




