Решено проблема с группой рассылки в Exchange

MrAnderson

Почетный гость
Привет всем. У меня есть Exchange 2019 и надо создать несколько групп рассылки. Проблема в следующем - когда я создаю группу рассылки через ECP то в свойства группы в samaccountname дописываются какие то цифры. Например называю группу SKLAD а в свойствах в active directory имя SKLAD-34534567. Пробовал удалять и создавать заново - то же самое. Сразу скажу репликация в AD нормально работает, почта ходит и вцелом все ок.
Подскажите почему и что делать. Как сделать нормальное имя группы ?
 
Решение
Если коротко и по делу - создавайте скриптом группы

Numbers appending to new distribution groups, specifically to their sAMAccountName in Active Directory, is a known issue, particularly when creating these groups through the Exchange Admin Center (EAC) or Exchange Control Panel (ECP) in on-premises Exchange environments. This behavior occurs because the system automatically generates a sAMAccountName if one is not explicitly specified during creation, often appending a numerical string (which might resemble a timestamp or a unique identifier) to ensure uniqueness.
Key points regarding this behavior:

GUI vs. PowerShell:
This automatic appending of numbers is more common when creating distribution groups using graphical...
Если коротко и по делу - создавайте скриптом группы

Numbers appending to new distribution groups, specifically to their sAMAccountName in Active Directory, is a known issue, particularly when creating these groups through the Exchange Admin Center (EAC) or Exchange Control Panel (ECP) in on-premises Exchange environments. This behavior occurs because the system automatically generates a sAMAccountName if one is not explicitly specified during creation, often appending a numerical string (which might resemble a timestamp or a unique identifier) to ensure uniqueness.
Key points regarding this behavior:

GUI vs. PowerShell:
This automatic appending of numbers is more common when creating distribution groups using graphical interfaces like the EAC/ECP. When using PowerShell with the New-DistributionGroup cmdlet, you can explicitly define the sAMAccountName using the -SamAccountName parameter, which can prevent the automatic appending of numbers.
sAMAccountName vs. Display Name:
The numbers are typically appended to the sAMAccountName, which is the pre-Windows 2000 logon name, not the DisplayName of the group.

Resolution:
Post-creation modification: After creating the group, you can manually modify the sAMAccountName in Active Directory Users and Computers (ADUC) or using PowerShell with the Set-DistributionGroup cmdlet.

Set-DistributionGroup -Identity "GroupName" -SamAccountName "DesiredSamAccountName"

PowerShell creation: To prevent this issue from the outset, create new distribution groups using PowerShell and specify the sAMAccountName during creation:

New-DistributionGroup -Name "NewGroup" -DisplayName "New Group" -SamAccountName "NewGroupSAM"
 
Решение
Назад
Верх