Skip to content

New-DL

SYNOPSIS

Create a new distribution list (DL) in Exchange Online.

SYNTAX

New-DL [-Name] <String> [-Suffix] <String> [-Task] <Int32> [<CommonParameters>]

DESCRIPTION

The `New-DL` function creates a new distribution list (DL) in Exchange Online. It validates the provided name and suffix, formats the DL name and alias, and assigns default properties such as the manager and notes.

EXAMPLES

EXAMPLE 1

New-DL -Name "Sales Team" -Suffix "example.com" -Task 12345

Creates a new distribution list named `DL Sales Team` with the email suffix `example.com` and logs the action with task number 12345.

PARAMETERS

-Name

The name of the distribution list to be created.

Type: String
Parameter Sets: (All)
Aliases:

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

-Suffix

The email suffix for the distribution list. Defaults to `stad.gent`.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: Stad.gent
Accept pipeline input: False
Accept wildcard characters: False

-Task

The task number associated with the creation of the distribution list, used for logging purposes.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: 0
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