Muokkaa

Jaa


Upgrade-DistributionGroup

This cmdlet is available only in the cloud-based service.

Use the Upgrade-DistributionGroup cmdlet to upgrade distribution groups to Microsoft 365 Groups. This cmdlet only works on distribution groups, not mail-enabled security groups.

Note: Before you use this cmdlet, verify there are no email address policies that you created with the IncludeUnifiedGroupRecipients parameter; otherwise the command will fail. Remove and recreate the email address policies after you upgrade your distribution groups to Microsoft 365 Groups.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Syntax

Upgrade-DistributionGroup
       [-DlIdentities] <MultiValuedProperty>
       [-ActionType <String>]
       [-ExecutingUser <RecipientIdParameter>]
       [-Organization <OrganizationIdParameter>]
       [<CommonParameters>]

Description

You need to be assigned permissions before you can run this cmdlet. Although this topic lists all parameters for the cmdlet, you may not have access to some parameters if they're not included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.

Examples

Example 1

Upgrade-DistributionGroup -DlIdentities hr@contoso.com,finance@contoso.com

This example upgrades the specified distribution groups to Microsoft 365 Groups.

Parameters

-ActionType

This parameter is reserved for internal Microsoft use.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online, Exchange Online Protection

-DlIdentities

The DlIdentities parameter specifies the email address of the distribution group that you want to upgrade to a Microsoft 365 Group.

You can specify multiple values separated by commas.

Type:MultiValuedProperty
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:Exchange Online

-ExecutingUser

This parameter is reserved for internal Microsoft use.

Type:RecipientIdParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online, Exchange Online Protection

-Organization

This parameter is reserved for internal Microsoft use.

Type:OrganizationIdParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online, Exchange Online Protection