Get-DistributionGroup "name" field

Efff dd 536 Reputation points
2021-02-17T14:54:02.777+00:00

hello
I created a new distro group using the web interface and then I verified it under PS i see the name field has extra characters in it.
why and how can i modify it. under the GAL the name looks correct.

Name DisplayName GroupType PrimarySmtpAddress
---- ---------- --------- ------------------
SOM OIS_NOT20210217131608 SOM OIS_NOT Universal SOMOIS_NOT@jaswant .com

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,349 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Efff dd 536 Reputation points
    2021-02-17T21:09:52.397+00:00

    could anyone explain why this happened?

    0 comments No comments

  2. Andy David - MVP 141.6K Reputation points MVP
    2021-02-17T21:22:01.437+00:00

    Collision or duplicate entries... Things like that and Exchange will append a number to that object to prevent duplicates
    It can also happen if using AADConnect with UPNs and Proxies
    https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/number-add-username-email-addres

    If you didnt add a samAccountName when you created the group, this can also occur:

    https://social.technet.microsoft.com/Forums/en-US/50a07036-8aba-455b-82c3-5add8ba8f430/exchange-2016new-distribution-group-samaccountname-is-appended-with-number-at-the-end?forum=Exch2016Adm

    If that was the case here, you can always recreate it

    0 comments No comments

  3. Xzsssss 8,861 Reputation points Microsoft Vendor
    2021-02-18T01:47:51.36+00:00

    Hi @Efff dd ,

    I think you could go ADUC and check this group, group name, e-mail address.
    Or doing it in EMS:

    Get-DistributionGroup DP1 | FL *Name*  
    

    Like Andy said, i think you don't have to worry about it as you could modify these parameters manually or recreate the group.

    Get-DistributionGroup DP1 | Foreach {Set-DistributionGroup $_.Name -SamAccountName $_.Name -DisplayName $_.Name}  
    

    Regards
    Lou


    If the response 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.