Exchange Connection Problems

Fix Exchange Online Automatic Replies for Duplicate Display Names

Jason MillerJason Miller Nov 20, 2026 868 views

Question details

Configure automatic replies for an Exchange Online mailbox when multiple recipients share the same display name.

Fix Exchange Online Automatic Replies for Duplicate Display Names
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.
Before you start

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.

Solution 1Recommended

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.

1
Install the PowerShell module

Open PowerShell and run Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser if the module is not already installed.

2
Connect to Exchange Online

Run Connect-ExchangeOnline and sign in with an account that can manage the mailbox.

3
Set the automatic reply

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

4
Verify the settings

Run Get-MailboxAutoReplyConfiguration -Identity user@contoso.com, using the same mailbox address, and check the state and messages.

5
Investigate duplicate recipients if needed

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.

External replies: The example uses -ExternalAudience All to allow replies to external senders. Use Known for external senders in the user's contacts, or None to disable external replies.
Free Microsoft Office alternative

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.

Draft internal and external automatic reply messages in WPS Writer.Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTX.Use a familiar interface to transition from Microsoft Office.Work with a free, lightweight office suite.
microsoft office alternative - wps office

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.