Skip to content

Add-DLManager

SYNOPSIS

Add a manager to a Distribution Group in Exchange Online.

SYNTAX

Add-DLManager [-Identity] <String> [-Manager] <String[]> [[-Task] <Int32>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The `Add-DLManager` function adds one or more managers to a specified Distribution Group in Exchange Online. It connects to Exchange Online and updates the `ManagedBy` property of the Distribution Group.

EXAMPLES

EXAMPLE 1

Add-DLManager -Identity "DL-Sales" -Manager "[email protected]"

Adds "manager1@example.com" as a manager to the Distribution Group "DL-Sales".

EXAMPLE 2

"DL-Sales", "DL-Marketing" | Add-DLManager -Manager "[email protected]", "[email protected]"

Adds "manager1@example.com" and "manager2@example.com" as managers to the Distribution Groups "DL-Sales" and "DL-Marketing".

PARAMETERS

-Identity

The identity of the Distribution Group to which the manager(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

-Manager

An array of user identifiers (e.g., UPNs) to be added as managers 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