Get-MailContact cmdlet gets information about the mail contact.

Input parameters

#

Parameter

Type

Mandatory (R/O)

Description

Valid Values
1 Authentication Information (all parameters)  

2

Identity

(aliases: GUID, DistinguishedName, EmailAddress )

MailContactIDParameter

O

A property, that is used for managing the mail contact

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
3 EmailAddress Contact's external Email address (e.g. aaa@gmail.com )
3 ResultSize int O This parameter specifies the maximum number of results to return  

Type MailContactIDParameter

This type is used for implicit converting strings, GUIDs or ADObjectIDInfo for identifiers, acceptable to Control Panel. It also supports wildcard ( * ) for searching by mask. MailContactIDParameter doesn't have any properties (parameters) as such. The user must not construct objects of this type by himself.

Output parameters

MailContactInfo

Example of using Get-MailContact cmdlet

Getting mail contact by EmailAddress:

Get-MailContact -Identity tom@accountname.hostpilot.com

Getting all contacts, which Email starts with "tom":

Get-MailContact -Identity "tom*"