New-CMExchangeServerConnectorEmailManagementSetting
Updated: March 1, 2013
Applies To: System Center 2012 Configuration Manager SP1
New-CMExchangeServerConnectorEmailManagementSetting
Syntax
Parameter Set: New New-CMExchangeServerConnectorEmailManagementSetting -AllowHtmlEmail <Boolean> -ConsumerEmail <Boolean> -EmailAttachmentPolicy <Boolean> -MaximumCalenderAge <MaxCalenderAgeType> -MaximumEmailAge <MaxEmailAgeType> -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 uses 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>
Aliases | none |
Required? | true |
Position? | named |
Default Value | none |
Accept Pipeline Input? | True (ByPropertyName) |
Accept Wildcard Characters? | false |
-EmailAttachmentPolicy<Boolean>
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 bytes, 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 bytes, 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 bytes, for text-formatted email.
Aliases | none |
Required? | false |
Position? | named |
Default Value | none |
Accept Pipeline Input? | True (ByPropertyName) |
Accept Wildcard Characters? | false |
-PushWhenRoaming<Boolean>
Aliases | none |
Required? | true |
Position? | named |
Default Value | none |
Accept Pipeline Input? | True (ByPropertyName) |
Accept Wildcard Characters? | false |
-Confirm
Prompts you for confirmation before executing the command.
Required? | false |
Position? | named |
Default Value | false |
Accept Pipeline Input? | false |
Accept Wildcard Characters? | false |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
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.
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 and adds those settings to the variable named $em.
-- 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 bytes for text-formatted email and of 402 bytes for HTML-formatted email.
-- Sets a maximum attachment size of 24 bytes
PS C:\> $em= New-CMExchangeServerConnectorEmailManagementSetting -ConsumerEmail $true -MaximumEmailAge OneDay -MaximumCalenderAge ThreeMonths -PushWhenRoaming $true -AllowHtmlEmail $true -EmailAttachmentPolicy $true -MaximumSizeTextEmail 401 -MaximumSizeHtmlEmail 402 -MaximumSizeAttachment 24
