Add-D09DistributiongroupMembers
SYNOPSIS
Add users to Distribution Groups in Exchange Online as members or managers.
SYNTAX
Add-D09DistributiongroupMembers [-DLNames] <Array> [[-Members] <Array>] [[-Managers] <Array>]
[-UseOwnEXOAuthentication] [<CommonParameters>]
DESCRIPTION
The `Add-D09DistributiongroupMembers` function adds users to specified Distribution Groups in Exchange Online. Users can be added as members or managers. The function supports authentication using the current session or by establishing a new connection.
EXAMPLES
EXAMPLE 1
Adds the user 'Ruylofma' as a member to the Distribution Group 'DL District09 Voorbeeld'.
EXAMPLE 2
Adds the user 'Ruylofma' as a manager to the Distribution Group 'DL District09 Voorbeeld'.
EXAMPLE 3
Add-D09DistributiongroupMembers -DLNames 'DL District09 Voorbeeld' -Members 'Ruylofma' -UseOwnEXOAuthentication
Adds the user 'Ruylofma' as a member to the Distribution Group 'DL District09 Voorbeeld' using an existing Exchange Online connection.
PARAMETERS
-DLNames
An array of Distribution Group names to which users will be added.
Type: Array
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Members
An array of user identifiers (e.g., UPNs) to be added as members of the Distribution Groups.
Type: Array
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Managers
An array of user identifiers (e.g., UPNs) to be added as managers of the Distribution Groups.
Type: Array
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UseOwnEXOAuthentication
A switch to indicate whether the function should use an existing Exchange Online connection. If not specified, the function will establish a new connection.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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.