Fix Mail-Enabled Security Group Provisioning Issues in Exchange Online PowerShell (EX1558755)

✨ Incident & PowerShell Brief — Mail-Enabled Security Groups (EX1558755)
  • Incident Context (EX1558755): Exchange Online service health incident EX1558755 (status: serviceRestored) documented a bug where mail-enabled security groups created through the admin center UI were provisioned incorrectly.
  • Reliable Bypass & Remediation: Provision and verify mail-enabled security groups directly via Exchange Online PowerShell using New-DistributionGroup -Type Security.
  • Audit Existing Groups: Inspect Get-DistributionGroup -RecipientTypeDetails MailUniversalSecurityGroup to verify PrimarySmtpAddress, MemberJoinRestriction, and GroupType.

During Exchange Online incident EX1558755 ("Admins' mail-enabled security groups created through the admin center UI may be provisioned incorrectly"), administrators who created Mail-Enabled Security Groups via the Microsoft 365 or Exchange Admin Center UI encountered broken or mis-provisioned group attributes.

Even after service restoration, Exchange Online PowerShell remains the fastest, most deterministic way to audit existing MailUniversalSecurityGroup objects and provision new ones cleanly.


Step 1: Audit All Mail-Enabled Security Groups in Exchange Online

POWERSHELL
Connect-ExchangeOnline -ShowBanner:$false

# List all Mail-Enabled Security Groups and verify SMTP & Type properties
Get-DistributionGroup -RecipientTypeDetails MailUniversalSecurityGroup -ResultSize Unlimited |
    Select-Object DisplayName, PrimarySmtpAddress, RecipientTypeDetails, GroupType, RequireSenderAuthenticationEnabled |
    Format-Table -AutoSize

Live Output from Our LAB 365 (xzf58.onmicrosoft.com) Tenant:

TEXT
DisplayName          PrimarySmtpAddress            RecipientTypeDetails
-----------          ------------------            --------------------
File Server Managers [email protected] MailUniversalSecurityGroup
Lab admins group     [email protected]           MailUniversalSecurityGroup

Step 2: Provision a Mail-Enabled Security Group Reliably via PowerShell

When creating a mail-enabled security group via PowerShell, specify -Type Security explicitly so Exchange Online stamps MailUniversalSecurityGroup and SecurityEnabled = True in Entra ID immediately:

POWERSHELL
# Create a new Mail-Enabled Security Group
New-DistributionGroup `
    -Name "Sec-M365-Admins" `
    -Alias "sec-m365-admins" `
    -PrimarySmtpAddress "[email protected]" `
    -Type Security `
    -MemberJoinRestriction Closed `
    -MemberDepartRestriction Closed

# Add members and verify
Add-DistributionGroupMember -Identity "[email protected]" -Member "[email protected]"
Get-DistributionGroupMember -Identity "[email protected]" | Select-Object DisplayName, PrimarySmtpAddress
Verification Tip: If a group created via the Admin Center UI during EX1558755 is missing PrimarySmtpAddress or failing RBAC/SharePoint permissions, inspect Get-DistributionGroup -Identity "<Name>" | Format-List and compare against a healthy MailUniversalSecurityGroup (or recreate via New-DistributionGroup -Type Security).

References & Official Microsoft Documentation

💬 Reader Comments & Feedback

Did this runbook help, or did Microsoft change a cmdlet or UI menu? Share your feedback below.