Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2
Topic Last Modified: 2012-11-21
Use the New-MailContact cmdlet to create a mail-enabled contact.
Syntax
New-MailContact -Name <String>
-ExternalEmailAddress <ProxyAddress> [-Alias <String>]
[-ArbitrationMailbox <MailboxIdParameter>] [-Confirm
[<SwitchParameter>]] [-DisplayName <String>]
[-DomainController <Fqdn>] [-ExternalDirectoryObjectId
<String>] [-FirstName <String>] [-Initials
<String>] [-LastName <String>] [-MacAttachmentFormat
<BinHex | UuEncode | AppleSingle | AppleDouble>]
[-MessageBodyFormat <Text | Html | TextAndHtml>]
[-MessageFormat <Text | Mime>] [-ModeratedBy
<MultiValuedProperty>] [-ModerationEnabled <$true |
$false>] [-Organization <OrganizationIdParameter>]
[-OrganizationalUnit <OrganizationalUnitIdParameter>]
[-OverrideRecipientQuotas <SwitchParameter>]
[-PartnerObjectId <Guid>] [-PrimarySmtpAddress
<SmtpAddress>] [-SendModerationNotifications <Never |
Internal | Always>] [-UsePreferMessageFormat <$true |
$false>] [-WhatIf [<SwitchParameter>]]
|
Detailed Description
The New-MailContact cmdlet creates a new mail contact object in Active Directory, and then mail-enables the mail contact.
You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Recipient Provisioning Permissions" section in the Mailbox Permissions topic.
Parameters
Parameter | Required | Type | Description | ||
---|---|---|---|---|---|
ExternalEmailAddress |
Required |
Microsoft.Exchange.Data.ProxyAddress |
The ExternalEmailAddress parameter specifies the target e-mail address. |
||
Name |
Required |
System.String |
The Name parameter specifies the common name of the mail contact. |
||
Alias |
Optional |
System.String |
The Alias parameter specifies the alias of the mail contact. |
||
ArbitrationMailbox |
Optional |
Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter |
The ArbitrationMailbox parameter specifies the mailbox used to manage the moderation process. |
||
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch. |
||
DisplayName |
Optional |
System.String |
The DisplayName parameter specifies the name displayed in Microsoft Outlook for the mail contact. |
||
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory. |
||
ExternalDirectoryObjectId |
Optional |
System.String |
This parameter is reserved for internal Microsoft use. |
||
FirstName |
Optional |
System.String |
The FirstName parameter specifies the first name of the mail contact. |
||
Initials |
Optional |
System.String |
The Initials parameter specifies the initials of the mail contact. |
||
LastName |
Optional |
System.String |
The LastName parameter specifies the last name of the mail contact. |
||
MacAttachmentFormat |
Optional |
Microsoft.Exchange.Data.Directory.Recipient.MacAttachmentFormat |
The MacAttachmentFormat parameter specifies the Apple Macintosh operating system attachment format for messages sent to the mail contact. The valid values for this parameter are:
By default, this parameter is set to The acceptable values for the MacAttachmentFormat
parameter are dependent on the MessageFormat parameter. If
the MessageFormat parameter is set to |
||
MessageBodyFormat |
Optional |
Microsoft.Exchange.Data.Directory.Recipient.MessageBodyFormat |
The MessageBodyFormat parameter specifies the message body format for messages sent to the mail contact. The valid values for this parameter are:
By default, this parameter is set to
The MessageFormat and MessageBodyFormat parameters
are interdependent. If the MessageFormat parameter is set to
|
||
MessageFormat |
Optional |
Microsoft.Exchange.Data.Directory.Recipient.MessageFormat |
The MessageFormat parameter specifies the message format for messages sent to the mail contact. The valid values for this parameter are:
By default, this parameter is set to The MessageFormat and MessageBodyFormat parameters
are interdependent. If the MessageFormat parameter is set to
|
||
ModeratedBy |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
The ModeratedBy parameter specifies the users who are responsible for moderating the messages sent to this mailbox. To designate more than one user, separate the users by using commas. This parameter is required if you set the
ModerationEnabled parameter to |
||
ModerationEnabled |
Optional |
System.Boolean |
The ModerationEnabled parameter enables or disables
moderation for the mailbox. To enable moderation, set this
parameter to The default value is |
||
Organization |
Optional |
Microsoft.Exchange.Configuration.Tasks.OrganizationIdParameter |
This parameter is available for multi-tenant deployments. It isn't available for on-premises deployments. For more information about multi-tenant deployments, see Multi-Tenant Support. The Organization parameter specifies the organization in which you'll perform this action. This parameter doesn't accept wildcard characters, and you must use the exact name of the organization. |
||
OrganizationalUnit |
Optional |
Microsoft.Exchange.Configuration.Tasks.OrganizationalUnitIdParameter |
The OrganizationalUnit parameter specifies the organizational unit (OU) to which the new contact is added. For example, redmond.contoso.com/contacts. |
||
OverrideRecipientQuotas |
Optional |
System.Management.Automation.SwitchParameter |
This parameter is available for multi-tenant deployments. It isn't available for on-premises deployments. For more information about multi-tenant deployments, see Multi-Tenant Support. The OverrideRecipientQuotas parameter specifies that the recipient quotas for this mail contact can be overridden. Mail contacts that are part of a tenant organization will use the quotas defined in the tenant organization's service plan. Use this parameter to allow the command to skip the tenant-level recipient quotas check.
|
||
PartnerObjectId |
Optional |
System.Guid |
This parameter is reserved for internal Microsoft use. |
||
PrimarySmtpAddress |
Optional |
Microsoft.Exchange.Data.SmtpAddress |
The PrimarySmtpAddress parameter specifies the primary
SMTP address for the mail contact. By default, the email address
that is specified in the ExternalEmailAddress parameter is
set as the PrimarySMTPAddress. If you specify a primary SMTP
address by using this parameter, the command sets the
EmailAddressPolicyEnabled attribute of the mail contact to
|
||
SendModerationNotifications |
Optional |
Microsoft.Exchange.Data.Directory.Recipient.TransportModerationNotificationFlags |
The SendModerationNotifications parameter specifies whether status notifications are sent to users when a message they sent to the moderated distribution group is rejected by one of the moderators. You can specify one of the following values:
Set this parameter to Set this parameter to Set this parameter to The default value is |
||
UsePreferMessageFormat |
Optional |
System.Boolean |
The UsePreferMessageFormat parameter specifies whether
recipient-preferred message format settings are used. When set to
|
||
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch. |
Input Types
To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.
Return Types
To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.
Examples
EXAMPLE 1
This example creates a mail-enabled contact by using the required parameters and the OrganizationalUnit parameter.
Copy Code | |
---|---|
New-MailContact -Name "Chris Ashton" -ExternalEmailAddress "Chris@tailspintoys.com" -OrganizationalUnit "Marketing" |