New-CMExchangeConnectorEmailManagementSetting

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

Syntax

New-CMExchangeConnectorEmailManagementSetting
   [-AllowHtmlEmail <Boolean>]
   [-ConsumerEmail <Boolean>]
   [-EmailAttachmentPolicy <Boolean>]
   [-MaximumCalendarAge <MaxCalendarAgeType>]
   [-MaximumEmailAge <MaxEmailAgeType>]
   [-MaximumSizeAttachment <Int32>]
   [-MaximumSizeHtmlEmail <Int32>]
   [-MaximumSizeTextEmail <Int32>]
   [-PushWhenRoaming <Boolean>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<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:

Optional Parameters

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

Inputs

None

Outputs

Microsoft.ConfigurationManagement.Cmdlets.HS.Commands.ExchangeConnectorEmailManagementSetting