New-​CM​Exchange​Connector​Email​Management​Setting

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

Syntax

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

Description

The New-CMExchangeConnectorEmailManagementSetting 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

{{Fill AllowHtmlEmail Description}}

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

{{Fill ConsumerEmail Description}}

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

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

{{Fill EmailAttachmentPolicy Description}}

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

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

{{Fill MaximumCalendarAge Description}}

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

{{Fill MaximumEmailAge Description}}

Type:MaxEmailAgeType
Parameter Sets:All, OneDay, ThreeDays, OneWeek, TwoWeeks, OneMonth
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MaximumSizeAttachment

{{Fill MaximumSizeAttachment Description}}

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

{{Fill MaximumSizeHtmlEmail Description}}

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

{{Fill MaximumSizeTextEmail Description}}

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

{{Fill PushWhenRoaming Description}}

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

Inputs

None

Outputs

Microsoft.ConfigurationManagement.Cmdlets.HS.Commands.ExchangeConnectorEmailManagementSetting