Exchange 2016 Distribution group creation from ECP appending numbers

Spartan117 1 Reputation point
2021-04-01T14:57:50.35+00:00

Hello, we recently migrated to Exchange 2016 (cu19) from Exchange 2013.

When an admin uses the ECP to create a group, the group is created with a set of numbers appended to the end of the name.

Example: New Group Name = "Test Group" The group will be named "Test-Group-123456789"

This is due to a group not being created with the SamAccountName. There isn't an option in the ECP to specify the SamAccountName.

This was never an issue in any version of the ECP with Exchange 2007, 2010, or 2013. Why is this now an issue with 2016?

I am aware of the alternative methods to create / repair the groups with powershell.

Powershell works for my powershell admins but not the Help Desk or any exchange support staff that create groups exclusively through the ECP.

Repair the group powershell command.
Get-DistributionGroup | foreach {Set-DistributionGroup $.name -SamAccountName $.name}

Again, This was never an issue in any version of the ECP with Exchange 2007, 2010, or 2013. Why is this now an issue with 2016?

Can this please be reverted back to how it functioned in prior installments of exchange?

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,335 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,875 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Eric Yin-MSFT 4,386 Reputation points
    2021-04-02T03:06:10.783+00:00

    Hi,
    New Group Name = "Test Group" The group will be named "Test-Group-123456789"
    -Which name do you mean that will be renamed automatically? I checked all values in my test, one is Samaccountname, another one is Group name(pre-Windows2000) in ADUC. Do you really use this group name?
    In Exchange 2010, there's only EMC for GUI, and you can specify the name when creating DG, so it's not an issue.
    83884-3.png
    In Exchange 2013, it will specify samaccount name automatically, so it's not an issue:
    83867-4.png
    In Exchange 2016&2019, it behaves as you said, I think that's what Microsoft want it to be.
    For a workround but not recommended, I've tested it works:

    1 On all Exchange Server 2016, find the %ExchangeInstallPath%Bin\CmdletExtensionAgents\ScriptingAgentConfig.xml.sample file, rename it to ScriptingAgentConfig.xml (Backup the original file)
    2 Open renamed file, remove all the content and add the following script.
    3 Enables the cmdlet extension agent named Scripting Agent: Enable-CmdletExtensionAgent "Scripting Agent"
    4 Restart IE and try to create a new security group via EAC.
    Script:

    <?xml version="1.0" encoding="utf-8" ?>  
      
    <Configuration version="1.0">  
      
       <Feature Name="MailboxProvisioning" Cmdlets="New-DistributionGroup">  
      
         <ApiCall Name="OnComplete">  
      
           If($succeeded) {  
      
             $mbx = $provisioningHandler.UserSpecifiedParameters["Alias"]  
      
      
         Set-DistributionGroup $mbx -SamAccountName $mbx  
      
           }  
      
         </ApiCall>  
      
       </Feature>  
      
    </Configuration>  
    

    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.