Only two
RecipientTypeDetails are available to distinguish between contact types.
??‘ Credential < PSCredential > : If specified the user is prompted for a password to access
Active Directory.
??‘ Filter < String > : This is an important parameter. Sometimes you may want to return just a
subset of Recipients or Recipients matching a specified criterion. Use the Filter parameter to
specify one or more attributes used to restrict the Recipients that are returned by the query. It
cannot be used in conjunction with the Anr parameter.
??‘ Identity < MailContactIdParameter > : The Identity parameter identifies the contact and
can use any of the following values: ADObjectID, GUID, DistinguishedName, UserPrincipal-
Name (UPN), LegacyDN, E - mail Address, or Alias.
Get - Group
This cmdlet queries for existing groups in Active Directory. The list of parameters is shown here. For a
detailed list run the following in the Exchange Management Shell: get-help Get-Group -detailed .
Get-Group [-Identity < GroupIdParameter > ] [-Credential < PSCredential > ]
[-DomainController < Fqdn > ] [-OrganizationalUnit < OrganizationalUnitIdParameter > ]
[-ReadFromDomainController < SwitchParameter > ] [-RecipientTypeDetails
< RecipientTypeDetails[] > ] [-ResultSize < Unlimited > ] [-SortBy < String > ]
[ < CommonParameters > ]
Get-Group [-Credential < PSCredential > ] [-DomainController < Fqdn > ] [-Filter
< String > ] [-OrganizationalUnit < OrganizationalUnitIdParameter > ]
[-ReadFromDomainController < SwitchParameter > ] [-RecipientTypeDetails
< RecipientTypeDetails [] > ] [-ResultSize < Unlimited > ] [-SortBy < String > ]
[ < CommonParameters > ]
Get-Group [-Anr < String > ] [-Credential < PSCredential > ] [-DomainController < Fqdn > ]
[-OrganizationalUnit < OrganizationalUnitIdParameter > ] [-ReadFromDomainController
< SwitchParameter > ] [-RecipientTypeDetails < RecipientTypeDetails[] > ]
[-ResultSize < Unlimited > ] [-SortBy < String > ] [ < CommonParameters > ]
Chapter 4: Working with User and Group Objects
91
Some key parameters to note include:
??‘ RecipientTypeDetails < RecipientTypeDetails[] > : Exchange Server 2007 further
distinguishes the Recipient types returned by this parameter.
Pages:
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168