How do I hide the “DisplayName” field?

Николай Щукин 21 Reputation points
2021-03-07T15:24:39.807+00:00

Hello, Our MS Exchange 2016 is served by two companies, i.e. two mail domains. At the same time, some employees have mailboxes configured in both domains. To avoid confusion when working with the address book, an advisory prefix was added to the properties of accounts in the “DisplayName” field for each company: Co1, Co2. The problem is that when letters are sent to external mail, for example to gmail, recipients see the company prefixes from the “DisplayName” field. Can you please tell me if it is possible to configure the mail server so that it does not transmit the contents of the “DisplayName” field to external mail servers?

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Yuki Sun-MSFT 41,451 Reputation points Moderator
    2021-03-08T05:30:02.763+00:00

    Hi @Николай Щукин

    You can consider running the command below to set the value of the "UseSimpleDisplayName" parameter to "$true":

    Set-RemoteDomain "Default" -UseSimpleDisplayName $true  
    

    By default no Simple Display Name is set for a user, so when -UseSimpleDisplayName is set to "$true", only the email address will show up for recipients on remote domains:
    75271-1.png

    Reference: Set-RemoteDomain

    Furthermore, you could also specify the Simple Display Name for users, so that the external recipients can see a different version of display name which doesn't include the company prefix. For scripts to add SimpleDisplayName for all users, you may refer to the blog below:
    Using the SimpleDisplayName attribute for Exchange and Exchange Online in Office 365 with PowerShell
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    By following the article above, I made slight modification and tested in my lab using the following commands, it worked well at my end:

    $users = Get-User -ResultSize Unlimited  
    foreach ($user in $users) {  
    $name=$user.DisplayName  
    $SDN=[string]::Concat($user.FirstName.Trim()," ", $user.LastName.Trim())  
    Set-User $user.Identity -SimpleDisplayName $SDN  
    }  
    

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Николай Щукин 21 Reputation points
    2021-03-09T12:53:41.533+00:00

    Thank! These settings did the trick.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.