< Back

Get-DDistributionGroup

Mon Jan 13, 2020 6:37 pm

NAME Get-DDistributionGroup



SYNOPSIS

Gets one or multiple distribution groups from Delegate365.





SYNTAX

Get-DDistributionGroup [-All <SwitchParameter>] [-Identity <string>] [-OU <string>] [-UnAssigned

<SwitchParameter>] [<CommonParameters>]





DESCRIPTION

Get-DDistributionGroup returns a list of distribution groups from Delegate365. Distribution groups (DG) allow to

deliver emails to multiple users. Parameters allow to get all distribution groups or one specific distribution

group. Filter for one distribution group by using the -Identity Parameter and the full name or the ID. The output

shows the most essential properties for each distribution group.





PARAMETERS

-UnAssigned <SwitchParameter>

Delivers all distribution groups that are not assigned to an OU.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-All <SwitchParameter>

Delivers all distribution groups (and not only the first 100 items).



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Identity <string>

Filter for one specific distribution group. Wildcards are not supported, use the full name or the ID.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OU <string>

Filter by the name of an OU.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Delegate365.Api.Core.Models.DistributionGroup[]





---------- EXAMPLE 1 ----------



Get-DDistributionGroup



By default, the command returns the first 100 assigned distribution groups.

---------- EXAMPLE 2 ----------



Get-DDistributionGroup -All



Add -All to get all distribution groups.

---------- EXAMPLE 3 ----------



Get-DDistributionGroup -Unassigned -All



Add -Unassigned to get distribution groups that are NOT assigned to an OU (can be combined with -All).

---------- EXAMPLE 4 ----------



Get-DDistributionGroup -OU Seattle



Add -OU to get distribution groups that are assigned to a specific OU.

---------- EXAMPLE 5 ----------



Get-DDistributionGroup -Identity it-department@delegate365.com



Get one specific distribution group by name or by ID.



RELATED LINKS

Delegate365 support https://support.delegate365.com/