Commands › Exchange Online
New-UnifiedGroup
Create Microsoft 365 Groups in your cloud-based organization. To add members, owners, and subscribers to Microsoft 365 Groups, use the Add-UnifiedGroupLinks cmdlet. **Note**: You can't use this cmdlet to create Microsoft 365 Groups if you connect using certificate based authentication (also known as CBA or app-only authentication for unattended scripts) or Azure managed identity. You can use Microsoft Graph instead. For more information, see Create group.
Quick start script
# New-UnifiedGroup — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-UnifiedGroup
$before | Format-List
# 3. Make the change (dry run first)
New-UnifiedGroup -DisplayName <String> -DlIdentity <DistributionGroupIdParameter> -WhatIf
New-UnifiedGroup -DisplayName <String> -DlIdentity <DistributionGroupIdParameter>
# 4. Verify and diff
$after = Get-UnifiedGroup
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 4 parameter sets
Identity (Default)
New-UnifiedGroup [-DisplayName <String>]
[-AccessType <ModernGroupTypeInfo>]
[-MailboxRegion <String>]
[-Alias <String>]
[-AlwaysSubscribeMembersToCalendarEvents]
[-AutoSubscribeNewMembers]
[-Classification <String>]
[-Confirm]
[-DataEncryptionPolicy <DataEncryptionPolicyIdParameter>]
[-EmailAddresses <ProxyAddressCollection>]
[-ExecutingUser <RecipientIdParameter>]
[-ExoErrorAsWarning]
[-HiddenGroupMembershipEnabled]
[-IsMemberAllowedToEditContent <System.Boolean>]
[-Language <CultureInfo>]
[-ManagedBy <RecipientIdParameter[]>]
[-Members <RecipientIdParameter[]>]
[-Name <String>]
[-Notes <String>]
[-Owner <RecipientIdParameter>]
[-PrimarySmtpAddress <SmtpAddress>]
[-RequireSenderAuthenticationEnabled <Boolean>]
[-SensitivityLabelId <Sustem.Guid>]
[-SuppressWarmupMessage]
[-WhatIf]
[<CommonParameters>]
ProvisioningOptions
New-UnifiedGroup [-DisplayName <String>]
[-AccessType <ModernGroupTypeInfo>]
[-Alias <String>]
[-AlwaysSubscribeMembersToCalendarEvents]
[-AutoSubscribeNewMembers]
[-Classification <String>]
[-Confirm]
[-DataEncryptionPolicy <DataEncryptionPolicyIdParameter>]
[-EmailAddresses <ProxyAddressCollection>]
[-ExecutingUser <RecipientIdParameter>]
[-ExoErrorAsWarning]
[-HiddenGroupMembershipEnabled]
[-Language <CultureInfo>]
[-ManagedBy <RecipientIdParameter[]>]
[-Members <RecipientIdParameter[]>]
[-Name <String>]
[-Notes <String>]
[-Owner <RecipientIdParameter>]
[-PrimarySmtpAddress <SmtpAddress>]
[-RequireSenderAuthenticationEnabled <Boolean>]
[-SensitivityLabelId <Sustem.Guid>]
[-SuppressWarmupMessage]
[-WhatIf]
[<CommonParameters>]
SegmentationOption
New-UnifiedGroup [-DisplayName <String>]
[-SubscriptionEnabled]
[-AccessType <ModernGroupTypeInfo>]
[-Alias <String>]
[-AlwaysSubscribeMembersToCalendarEvents]
[-AutoSubscribeNewMembers]
[-Classification <String>]
[-Confirm]
[-DataEncryptionPolicy <DataEncryptionPolicyIdParameter>]
[-EmailAddresses <ProxyAddressCollection>]
[-ExecutingUser <RecipientIdParameter>]
[-ExoErrorAsWarning]
[-HiddenGroupMembershipEnabled]
[-Language <CultureInfo>]
[-ManagedBy <RecipientIdParameter[]>]
[-Members <RecipientIdParameter[]>]
[-Name <String>]
[-Notes <String>]
[-Owner <RecipientIdParameter>]
[-PrimarySmtpAddress <SmtpAddress>]
[-RequireSenderAuthenticationEnabled <Boolean>]
[-SensitivityLabelId <Sustem.Guid>]
[-SuppressWarmupMessage]
[-WhatIf]
[<CommonParameters>]
DlMigration
New-UnifiedGroup -DlIdentity <DistributionGroupIdParameter>
[-ConvertClosedDlToPrivateGroup]
[-DeleteDlAfterMigration]
[-Confirm]
[-ExecutingUser <RecipientIdParameter>]
[-ManagedBy <RecipientIdParameter[]>]
[-Members <RecipientIdParameter[]>]
[-Owner <RecipientIdParameter>]
[-WhatIf]
[<CommonParameters>]
Parameters (29)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.