Get-DistributionGroupMember cmdlet is used for getting members of the distribution group.

Input parameters

#
Parameter
Type

Mandatory (R/O)

Description
Valid Values
1 Authentication Information (all parameters)  
2

Identity

(aliases: GUID, DistinguishedName)

ADObjectIDParameter R

A property that is used for managing the members of the distribution group (list)

Value of one of these parameters can be used as Identity:

#ParameterDescription
1 GUID Globally Unique Identifier (ObjectGuid)
2 DistinguishedName Unique name of the object in Active Directory

Output parameters

#
Property
Type
Description
Valid Values
DistributionGroupMemberInfo:
1 DisplayName string Name of the member of distribution list in CP (possible members: mailboxes, mail contacts, distribution lists, etc.)  
2 EmailAddress string

The Email address of the group member

 
3 Identity ADObjectIdentityInfo A property that is used for managing the members of the distribution group (list)  
4 RecipientType string

Type of the members of the distribution group (list)

  • Unknown
  • User
  • ExchangeMailbox
  • OwaMailbox
  • ResourceMailbox
  • PopImapMailbox
  • MailContact
  • PublicFolder
  • DistributionList

Type ADObjectIdentityInfo

#PropertyType

Mandatory (R/O)

DescriptionAdditional information 
1 DistinguishedName string R* Unique name of the object in Active Directory

*ADObjectIdentityInfo must contain at least one of these properties or both of them

GUID Guid R* Globally Unique Identifier (ObjectGuid)
3 OriginatingServer string O Address of the server (domain name), where the object physically exists  

Examples of using Get-DistributionGroupMember cmdlet

Getting the members of the distribution group (list) by DistinguishedName:

Get-DistributionGroupMember -Identity "CN=DLTeam@accountname,OU=accountname,OU=Hosting,DC=exchXXX,DC=domain,DC=local"

Getting the members of the distribution group (list) by GUID:

Get-DistributionGroupMember -Identity "65C711D8-A0E6-4FE7-ACDA-8853D03F954B"