New-ActiveSyncMailboxPolicy
Applies to: Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3
The New-ActiveSyncMailboxPolicy cmdlet is used to create a new Microsoft Exchange ActiveSync mailbox policy object.
Syntax
new-ActiveSyncMailboxPolicy -Name <String> [-AllowBluetooth <Disable | HandsfreeOnly | Allow>] [-AllowBrowser <$true | $false>] [-AllowCamera <$true | $false>] [-AllowConsumerEmail <$true | $false>] [-AllowDesktopSync <$true | $false>] [-AllowExternalDeviceManagement <$true | $false>] [-AllowHTMLEmail <$true | $false>] [-AllowInternetSharing <$true | $false>] [-AllowIrDA <$true | $false>] [-AllowNonProvisionableDevices <$true | $false>] [-AllowPOPIMAPEmail <$true | $false>] [-AllowRemoteDesktop <$true | $false>] [-AllowSimpleDevicePassword <$true | $false>] [-AllowSMIMEEncryptionAlgorithmNegotiation <BlockNegotiation | OnlyStrongAlgorithmNegotiation | AllowAnyAlgorithmNegotiation>] [-AllowSMIMESoftCerts <$true | $false>] [-AllowStorageCard <$true | $false>] [-AllowTextMessaging <$true | $false>] [-AllowUnsignedApplications <$true | $false>] [-AllowUnsignedInstallationPackages <$true | $false>] [-AllowWiFi <$true | $false>] [-AlphanumericDevicePasswordRequired <$true | $false>] [-ApprovedApplicationList <ApprovedApplicationCollection>] [-AttachmentsEnabled <$true | $false>] [-Confirm [<SwitchParameter>]] [-DeviceEncryptionEnabled <$true | $false>] [-DevicePasswordEnabled <$true | $false>] [-DevicePasswordExpiration <Unlimited>] [-DevicePasswordHistory <Int32>] [-DomainController <Fqdn>] [-IsDefaultPolicy <$true | $false>] [-MaxAttachmentSize <Unlimited>] [-MaxCalendarAgeFilter <All | TwoWeeks | OneMonth | ThreeMonths | SixMonths>] [-MaxDevicePasswordFailedAttempts <Unlimited>] [-MaxEmailAgeFilter <All | OneDay | ThreeDays | OneWeek | TwoWeeks | OneMonth>] [-MaxEmailBodyTruncationSize <Unlimited>] [-MaxEmailHTMLBodyTruncationSize <Unlimited>] [-MaxInactivityTimeDeviceLock <Unlimited>] [-MinDevicePasswordComplexCharacters <Int32>] [-MinDevicePasswordLength <Nullable>] [-PasswordRecoveryEnabled <$true | $false>] [-RequireDeviceEncryption <$true | $false>] [-RequireEncryptedSMIMEMessages <$true | $false>] [-RequireEncryptionSMIMEAlgorithm <TripleDES | DES | RC2128bit | RC264bit | RC240bit>] [-RequireManualSyncWhenRoaming <$true | $false>] [-RequireSignedSMIMEAlgorithm <SHA1 | MD5>] [-RequireSignedSMIMEMessages <$true | $false>] [-RequireStorageCardEncryption <$true | $false>] [-TemplateInstance <PSObject>] [-UnapprovedInROMApplicationList <MultiValuedProperty>] [-UNCAccessEnabled <$true | $false>] [-WhatIf [<SwitchParameter>]] [-WSSAccessEnabled <$true | $false>]
Detailed Description
The New-ActiveSyncMailboxPolicy cmdlet creates an Exchange ActiveSync policy for mailboxes that are accessed by mobile devices.
To run the New-ActiveSyncMailboxPolicy cmdlet, the account you use must be delegated the Exchange Organization Administrator role.
For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Name |
Required |
System.String |
This parameter specifies the name of the policy. |
AllowBluetooth |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.BluetoothType |
This parameter specifies whether the Bluetooth capabilities of the mobile device are allowed. The available options are Disable, HandsfreeOnly, and Allow. The default value is |
AllowBrowser |
Optional |
System.Boolean |
This parameter indicates whether Pocket Internet Explorer is allowed on the mobile device. The default value is |
AllowCamera |
Optional |
System.Boolean |
This parameter indicates whether the mobile device's camera is allowed. The default value is |
AllowConsumerEmail |
Optional |
System.Boolean |
This parameter indicates whether the mobile device user can configure a personal e-mail account on the device. The default value is |
AllowDesktopSync |
Optional |
System.Boolean |
This parameter specifies whether the mobile device can synchronize with a desktop computer through a cable. The default value is |
AllowExternalDeviceManagement |
Optional |
System.Boolean |
This parameter specifies whether an external device management program is allowed to manage the device. |
AllowHTMLEmail |
Optional |
System.Boolean |
This parameter specifies whether HTML e-mail is enabled on the device. The default value is |
AllowInternetSharing |
Optional |
System.Boolean |
This parameter specifies whether the mobile device can be used as a modem to connect a computer to the Internet. The default value is |
AllowIrDA |
Optional |
System.Boolean |
This parameter specifies whether infrared connections are allowed to the mobile device. The default value is |
AllowNonProvisionableDevices |
Optional |
System.Boolean |
When set to |
AllowPOPIMAPEmail |
Optional |
System.Boolean |
This parameter specifies whether the user can configure a POP3 or IMAP4 e-mail account on the device. The default value is |
AllowRemoteDesktop |
Optional |
System.Boolean |
This parameter specifies whether the mobile device can initiate a remote desktop connection. The default value is |
AllowSimpleDevicePassword |
Optional |
System.Boolean |
This parameter specifies whether a simple device password is allowed. A simple device password is a password that has a specific pattern, such as 1111 or 1234. The default value is |
AllowSMIMEEncryptionAlgorithmNegotiation |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.SMIMEEncryptionAlgorithmNegotiationType |
This parameter specifies whether the messaging application on the device can negotiate the encryption algorithm in case a recipient's certificate does not support the specified encryption algorithm. |
AllowSMIMESoftCerts |
Optional |
System.Boolean |
This parameter specifies whether S/MIME software certificates are allowed. The default value is |
AllowStorageCard |
Optional |
System.Boolean |
This parameter specifies whether the device can access information that is stored on a storage card. The default value is |
AllowTextMessaging |
Optional |
System.Boolean |
This parameter specifies whether text messaging is allowed from the device. The default value is |
AllowUnsignedApplications |
Optional |
System.Boolean |
This parameter specifies whether unsigned applications can be installed on the device. The default value is |
AllowUnsignedInstallationPackages |
Optional |
System.Boolean |
This parameter specifies whether unsigned installation packages can be executed on the device. The default value is |
AllowWiFi |
Optional |
System.Boolean |
This parameter specifies whether wireless Internet access is allowed on the device. The default value is |
AlphanumericDevicePasswordRequired |
Optional |
System.Boolean |
This parameter specifies that the device password must be alphanumeric. The default value is |
ApprovedApplicationList |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.ApprovedApplicationCollection |
This parameter contains a list of approved applications for the device. |
AttachmentsEnabled |
Optional |
System.Boolean |
When set to |
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
This parameter causes the command to pause processing and requires that the administrator acknowledge what the command will do before processing continues. The default value is |
DeviceEncryptionEnabled |
Optional |
System.Boolean |
This parameter, when set to |
DevicePasswordEnabled |
Optional |
System.Boolean |
When set to |
DevicePasswordExpiration |
Optional |
Microsoft.Exchange.Data.Unlimited |
This parameter specifies the length of time, in days, that a password can be used. After this length of time, a new password must be created. The format of the parameter is dd.hh.mm:ss, for example, 24.00:00 = 24 hours. |
DevicePasswordHistory |
Optional |
System.Int32 |
This parameter specifies the number of previously-used passwords to store. When a user creates a new password, the user cannot reuse a stored password that was previously used. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
This parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to the Active Directory directory service. |
IsDefaultPolicy |
Optional |
System.Boolean |
This parameter specifies whether this policy is the default Exchange ActiveSync mailbox policy. The default value is |
MaxAttachmentSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
This parameter specifies the maximum size of attachments that can be downloaded to the mobile device. The default value is |
MaxCalendarAgeFilter |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.CalendarAgeFilterType |
This parameter specifies the maximum range of calendar days that can be synchronized to the device. The value is specified in days. |
MaxDevicePasswordFailedAttempts |
Optional |
Microsoft.Exchange.Data.Unlimited |
This parameter specifies the number of attempts a user can make to enter the correct password for the device. You can enter any number between 4 and 16. The default value is |
MaxInactivityTimeDeviceLock |
Optional |
Microsoft.Exchange.Data.Unlimited |
This parameter specifies the length of time that the device can be inactive before the password is required to reactivate the device. You can enter any interval between 30 seconds and 1 hour. The default value is |
MinDevicePasswordLength |
Optional |
System.Nullable |
This parameter specifies the minimum number of characters in the device password. You can enter any number between 1 and 16. The maximum length a password can be is 16 characters. The default value is |
MaxEmailAgeFilter |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.EmailAgeFilterType |
This parameter specifies the maximum number of days of e-mail items to synchronize to the device. The value is specified in days. |
MaxEmailBodyTruncationSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
This parameter specifies the maximum size at which e-mail messages are truncated when synchronized to the device. The value is specified in kilobytes (KB). |
MaxEmailHTMLBodyTruncationSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
This parameter specifies the maximum size at which HTML-Formatted e-mail messages are synchronized to the device. The value is specified in kilobytes (KB). |
MinDevicePasswordComplexCharacters |
Optional |
System.Int32 |
This parameter specifies the minimum number of complex characters required in a device password. A complex character is not a letter. |
PasswordRecoveryEnabled |
Optional |
System.Boolean |
When set to |
RequireDeviceEncryption |
Optional |
System.Boolean |
This parameter specifies whether encryption is required on the device. The default value is |
RequireEncryptedSMIMEMessages |
Optional |
System.Boolean |
This parameter specifies whether you must encrypt S/MIME messages. The default value is |
RequireEncryptionSMIMEAlgorithm |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.EncryptionSMIMEAlgorithmType |
This parameter specifies what required algorithm must be used when encrypting a message. |
RequireManualSyncWhenRoaming |
Optional |
System.Boolean |
This parameter specifies whether the device must synchronize manually while roaming. The default value is |
RequireSignedSMIMEAlgorithm |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.SignedSMIMEAlgorithmType |
This parameter specifies what required algorithm must be used when signing a message. |
RequireSignedSMIMEMessages |
Optional |
System.Boolean |
This parameter specifies whether the device must send signed S/MIME messages. |
RequireStorageCardEncryption |
Optional |
System.Boolean |
This parameter specifies whether encryption of a storage card is required. The default value is |
TemplateInstance |
Optional |
System.Management.Automation.PSObject |
This parameter enables you to create a policy from an existing policy. |
UnapprovedInROMApplicationList |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter contains a list of applications that cannot be run in ROM. |
UNCAccessEnabled |
Optional |
System.Boolean |
This parameter specifies whether access to Windows file shares is enabled. Access to specific shares is configured on the Exchange ActiveSync virtual directory. |
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
This parameter instructs the command to simulate the actions that it would take on the object. By using the WhatIf parameter, the administrator can view what changes would occur without having to apply any of those changes. The default value is |
WSSAccessEnabled |
Optional |
System.Boolean |
This parameter specifies whether access to Windows SharePoint Services is enabled. Access to specific shares is configured on the Exchange ActiveSync virtual directory. |
Note
Some Exchange ActiveSync policy settings require the mobile device to have certain built-in features that enforce these security and device management settings. If your organization allows all devices, you must set the AllowNonProvisionableDevices parameter to $true
. This includes devices that cannot enforce all policy settings,
Input Types
Return Types
Errors
Error | Description |
---|---|
|
|
Exceptions
Exceptions | Description |
---|---|
|
|
Example
This code example creates a new Exchange ActiveSync policy that is named SalesPolicy that has several values that are preconfigured.
New-ActiveSyncMailboxPolicy -Name:"SalesPolicy" -DevicePasswordEnabled:$true -AlphanumericDevicePasswordRequired:$true -PasswordRecoveryEnabled:$true -MaxEmailAgeFilter:5 -AllowWiFi:$falst -AllowStorageCard: $true -AllowPOPIMAPEmail:$false