✨ Incident & PowerShell Brief — Mail-Enabled Security Groups (EX1558755)
- Incident Context (
EX1558755): Exchange Online service health incidentEX1558755(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 MailUniversalSecurityGroupto verifyPrimarySmtpAddress,MemberJoinRestriction, andGroupType.
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 duringEX1558755is missingPrimarySmtpAddressor failing RBAC/SharePoint permissions, inspectGet-DistributionGroup -Identity "<Name>" | Format-Listand compare against a healthyMailUniversalSecurityGroup(or recreate viaNew-DistributionGroup -Type Security).
💬 Reader Comments & Feedback
Did this runbook help, or did Microsoft change a cmdlet or UI menu? Share your feedback below.
Leave a Comment or Report an Update