Add-DistributionMember
SYNOPSIS
SYNTAX
Add-DistributionMember [-Mailbox] <Object> [-DistributionGroup] <Object> [<CommonParameters>]
DESCRIPTION
Add a mailbox or mailboxes to a distribution group. Wildcards can be used to add the whole organization to a distribution group.
EXAMPLES
EXAMPLE 1
Add a single mailbox to a single distribution group
Add-DistributionMember -Mailbox JohnD@company.com -DistributionGroup "All Employees"
EXAMPLE 2
Allows shortening the command or adding multiple mailboxes with a shared name to a Distribution Group
Add-DistributionMember -Mailbox @company.com -DistributionGroup "All Emp"
EXAMPLE 3
Add a single mailbox to multiple Distribution Groups.
Add-DistributionMember -Mailbox JohnD@company.com -DistributionGroup "All Employees,Worker Bees"
PARAMETERS
-Mailbox
Specifies the Mailbox or Mailboxes that are to be added to the Distribution Group
Type: System.Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DistributionGroup
The Distribution Group the Mailbox or Mailboxes are being added to
Type: System.Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
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
Requires the microsoft exchange module.