New-CMExchangeServerConnectorEmailManagementSetting

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

Syntax

New-CMExchangeServerConnectorEmailManagementSetting
   [-AllowHtmlEmail <Boolean>]
   [-ConsumerEmail <Boolean>]
   [-EmailAttachmentPolicy <Boolean>]
   [-MaximumCalendarAge <MaxCalendarAgeType>]
   [-MaximumEmailAge <MaxEmailAgeType>]
   [-MaximumSizeAttachment <Int32>]
   [-MaximumSizeHtmlEmail <Int32>]
   [-MaximumSizeTextEmail <Int32>]
   [-PushWhenRoaming <Boolean>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

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

Examples

Example 1: Add email management settings to a mobile device

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

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.

Optional Parameters

-AllowHtmlEmail

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

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ConsumerEmail

Indicates whether to allow consumer email through the connector.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EmailAttachmentPolicy

Indicates whether the policy allows email attachments.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MaximumCalendarAge
Type:MaxCalendarAgeType
Aliases:MaximumCalenderAge
Parameter Sets:All, TwoWeeks, OneMonth, ThreeMonths, SixMonths
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MaximumEmailAge

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
Type:MaxEmailAgeType
Parameter Sets:All, OneDay, ThreeDays, OneWeek, TwoWeeks, OneMonth
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MaximumSizeAttachment

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

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MaximumSizeHtmlEmail

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

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MaximumSizeTextEmail

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

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PushWhenRoaming

Indicates whether to push email to roaming clients.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False