New-CMExchangeConnectorEmailManagementSetting

Create 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.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

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.

New-CMExchangeConnectorEmailManagementSetting -AllowHtmlEmail $True -ConsumerEmail $True -EmailAttachmentPolicy $True -MaximumCalenderAge ThreeMonths -MaximumEmailAge OneDay -PushWhenRoaming $True -MaximumSizeAttachment 24 -MaximumSizeHtmlEmail 402 -MaximumSizeTextEmail 401

Parameters

-AllowHtmlEmail

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

-ConsumerEmail

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

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

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

-EmailAttachmentPolicy

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

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

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

-MaximumCalendarAge

Type:MaxCalendarAgeType
Aliases:MaximumCalenderAge
Accepted values:All, TwoWeeks, OneMonth, ThreeMonths, SixMonths
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaximumEmailAge

Type:MaxEmailAgeType
Accepted values:All, OneDay, ThreeDays, OneWeek, TwoWeeks, OneMonth
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaximumSizeAttachment

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

-MaximumSizeHtmlEmail

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

-MaximumSizeTextEmail

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

-PushWhenRoaming

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

Inputs

None

Outputs

Microsoft.ConfigurationManagement.PowerShell.Cmdlets.HS.ExchangeConnectorEmailManagementSetting

Notes

Cmdlet aliases: New-CMExchangeServerConnectorEmailManagementSetting