Skip to content

Add-DLMember

SYNOPSIS

Add members to a Distribution Group in Exchange Online.

SYNTAX

Add-DLMember [-Identity] <String> [-Member] <String[]> [[-Task] <Int32>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The `Add-DLMember` function adds one or more members to a specified Distribution Group in Exchange Online. It connects to Exchange Online and updates the group membership.

EXAMPLES

EXAMPLE 1

Add-DLMember -Identity "DL-Sales" -Member "[email protected]"

Adds "user1@example.com" as a member to the Distribution Group "DL-Sales".

EXAMPLE 2

"DL-Sales", "DL-Marketing" | Add-DLMember -Member "[email protected]", "[email protected]"

Adds "user1@example.com" and "user2@example.com" as members to the Distribution Groups "DL-Sales" and "DL-Marketing".

PARAMETERS

-Identity

The identity of the Distribution Group to which the member(s) will be added.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Member

An array of user identifiers (e.g., UPNs) to be added as members of the Distribution Group.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Task

An optional task identifier for tracking or logging purposes.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES