New-CMExchangeServerConnectorEmailManagementSetting

New-CMExchangeServerConnectorEmailManagementSetting

Creates a set of email management settings for a mobile device that uses an Exchange Server connector.

Syntax

Parameter Set: New
New-CMExchangeServerConnectorEmailManagementSetting -AllowHtmlEmail <Boolean> -ConsumerEmail <Boolean> -EmailAttachmentPolicy <Boolean> -MaximumCalenderAge <MaxCalenderAgeType> {All | OneMonth | SixMonths | ThreeMonths | TwoWeeks} -MaximumEmailAge <MaxEmailAgeType> {All | OneDay | OneMonth | OneWeek | ThreeDays | TwoWeeks} -PushWhenRoaming <Boolean> [-MaximumSizeAttachment <Int32> ] [-MaximumSizeHtmlEmail <Int32> ] [-MaximumSizeTextEmail <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The New-CMExchangeServerConnectorEmailManagementSetting cmdlet creates a set of e-mail management settings for a mobile device that uses an Exchange Server connector.

Parameters

-AllowHtmlEmail<Boolean>

Indicates whether the mobile devices use HTML for e-mail messages.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ConsumerEmail<Boolean>

Indicates whether to allow consumer email through the connector.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-EmailAttachmentPolicy<Boolean>

Indicates whether the policy allows email attachments.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-MaximumCalenderAge<MaxCalenderAgeType>

Specifies how long a mobile device keeps calendar data. The acceptable values for this parameter are:

-- All
-- OneMonth
-- SixMonths
-- ThreeMonths
-- TwoWeeks

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-MaximumEmailAge<MaxEmailAgeType>

Specifies how long a mobile device saves email before the device automatically deletes the mail. The acceptable values for this parameter are:

-- OneDay
-- OneMonth
-- OneWeek
-- ThreeDays
-- TwoWeeks

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-MaximumSizeAttachment<Int32>

Specifies the maximum size, in kilobytes (KB), for email attachments.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-MaximumSizeHtmlEmail<Int32>

Specifies the maximum size, in kilobytes, for HTML-formatted email.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-MaximumSizeTextEmail<Int32>

Specifies the maximum size, in kilobytes, for text-formatted email.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PushWhenRoaming<Boolean>

Indicates whether to push email to roaming clients.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Add email management settings to a mobile device

This command creates the following settings for a mobile device:

-- Saves email data for one day before erasing it.
-- Saves calendar data for three months before erasing it.
-- Allows HTML-formatted email.
-- Sets a maximum size of 401 KB for text-formatted email and of 402 KB for HTML-formatted email.
-- Sets a maximum attachment size of 24 KB.

PS C:\> New-CMExchangeServerConnectorEmailManagementSetting -AllowHtmlEmail $True -ConsumerEmail $True -EmailAttachmentPolicy $True -MaximumCalenderAge ThreeMonths -MaximumEmailAge OneDay -PushWhenRoaming $True -MaximumSizeAttachment 24 -MaximumSizeHtmlEmail 402 -MaximumSizeTextEmail 401

New-CMExchangeServerConnectorAccessRule

New-CMExchangeServerConnectorApplicationSetting

New-CMExchangeServerConnectorGeneralSetting

New-CMExchangeServerConnectorPasswordSetting

New-CMExchangeServerConnectorSecuritySetting