Applies to: Exchange Server 2013
Topic Last Modified: 2013-01-16
Use the Set-MobileDeviceMailboxPolicy cmdlet to apply a variety of Mobile Device mailbox policy settings to a server. You can set any of the parameters by using one command.
For information about the parameter sets in the Syntax section below, see Syntax.
Syntax
Set-MobileDeviceMailboxPolicy -Identity
<MailboxPolicyIdParameter> [-AllowApplePushNotifications
<$true | $false>] [-AllowBluetooth <Disable |
HandsfreeOnly | Allow>] [-AllowBrowser <$true | $false>]
[-AllowCamera <$true | $false>] [-AllowConsumerEmail
<$true | $false>] [-AllowCopyContactsToDeviceAddressBook
<$true | $false>] [-AllowDesktopSync <$true | $false>]
[-AllowExternalDeviceManagement <$true | $false>]
[-AllowHTMLEmail <$true | $false>] [-AllowInternetSharing
<$true | $false>] [-AllowIrDA <$true | $false>]
[-AllowMobileOTAUpdate <$true | $false>]
[-AllowNonProvisionableDevices <$true | $false>]
[-AllowPOPIMAPEmail <$true | $false>] [-AllowRemoteDesktop
<$true | $false>] [-AllowSimplePassword <$true |
$false>] [-AllowSMIMEEncryptionAlgorithmNegotiation
<BlockNegotiation | OnlyStrongAlgorithmNegotiation |
AllowAnyAlgorithmNegotiation>] [-AllowSMIMESoftCerts <$true |
$false>] [-AllowStorageCard <$true | $false>]
[-AllowTextMessaging <$true | $false>]
[-AllowUnsignedApplications <$true | $false>]
[-AllowUnsignedInstallationPackages <$true | $false>]
[-AllowWiFi <$true | $false>] [-AlphanumericPasswordRequired
<$true | $false>] [-ApprovedApplicationList
<ApprovedApplicationCollection>] [-AttachmentsEnabled
<$true | $false>] [-Confirm [<SwitchParameter>]]
[-DeviceEncryptionEnabled <$true | $false>]
[-DevicePolicyRefreshInterval <Unlimited>] [-DomainController
<Fqdn>] [-IrmEnabled <$true | $false>] [-IsDefault
<$true | $false>] [-MaxAttachmentSize <Unlimited>]
[-MaxCalendarAgeFilter <All | TwoWeeks | OneMonth | ThreeMonths
| SixMonths>] [-MaxEmailAgeFilter <All | OneDay | ThreeDays |
OneWeek | TwoWeeks | OneMonth>] [-MaxEmailBodyTruncationSize
<Unlimited>] [-MaxEmailHTMLBodyTruncationSize
<Unlimited>] [-MaxInactivityTimeLock <Unlimited>]
[-MaxPasswordFailedAttempts <Unlimited>]
[-MinPasswordComplexCharacters <Int32>] [-MinPasswordLength
<Int32>] [-MobileOTAUpdateMode <MajorVersionUpdates |
MinorVersionUpdates | BetaVersionUpdates>] [-Name
<String>] [-PasswordEnabled <$true | $false>]
[-PasswordExpiration <Unlimited>] [-PasswordHistory
<Int32>] [-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>]
[-UnapprovedInROMApplicationList <MultiValuedProperty>]
[-UNCAccessEnabled <$true | $false>] [-WhatIf
[<SwitchParameter>]] [-WSSAccessEnabled <$true |
$false>]
|
Examples
EXAMPLE 1
This example sets several policy settings for the Mobile Device mailbox policy SalesPolicy.
Copy Code | |
---|---|
Set-MobileDeviceMailboxPolicy -Identity:SalesPolicy -PasswordEnabled:$true -AlphanumericPasswordRequired:$true -PasswordRecoveryEnabled:$true -AttachmentsEnabled:$true -MaxInactivityTimeLock:15:00 -IsDefault:$false |
EXAMPLE 2
This example sets several policy settings for the Mobile Device mailbox policy Management.
Copy Code | |
---|---|
Set-MobileDeviceMailboxPolicy -Identity:Management -PasswordEnabled:$true -AlphanumericPasswordRequired:$true -PasswordRecoveryEnabled:$true -AllowCamera:$true -AllowWiFi:$false -AllowStorageCard:$true -AllowPOPIMAPEmail:$false |
EXAMPLE 3
This example sets several policy settings for the Mobile Device mailbox policy Default and requires confirmation before applying the settings.
Copy Code | |
---|---|
Set-MobileDeviceMailboxPolicy -Identity:Default -PasswordEnabled:$true -AlphanumericPasswordRequired:$true -PasswordRecoveryEnabled:$true -AllowWiFi:$false -AllowStorageCard:$true -AllowPOPIMAPEmail:$false -IsDefault:$true -AllowTextMessaging:$true -Confirm:$true |
Detailed Description
With the Set-MobileDeviceMailboxPolicy cmdlet, you can set each parameter in a mailbox policy.
Note: |
---|
Some Microsoft Mobile Device mailbox policy settings require
the mobile device to have specific 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 applies to devices that can't enforce all
policy settings. |
You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Mobile device mailbox policy settings" entry in the Clients and Mobile Devices Permissions topic.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.MailboxPolicyIdParameter |
The Identity parameter specifies the Mobile Device mailbox policy. |
AllowApplePushNotifications |
Optional |
System.Boolean |
The AllowApplePushNotifications parameter specifies whether push notifications are allowed for Apple mobile devices. |
AllowBluetooth |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.BluetoothType |
The AllowBluetooth parameter specifies whether the
Bluetooth capabilities are allowed on the mobile phone. The
available options are |
AllowBrowser |
Optional |
System.Boolean |
The AllowBrowser parameter specifies whether Microsoft
Pocket Internet Explorer is allowed on the mobile phone. The
default value is |
AllowCamera |
Optional |
System.Boolean |
The AllowCamera parameter specifies whether the mobile
phone's camera is allowed. The default value is
|
AllowConsumerEmail |
Optional |
System.Boolean |
The AllowConsumerEmail parameter specifies whether the
mobile phone user can configure a personal email account on the
mobile phone. The default value is |
AllowCopyContactsToDeviceAddressBook |
Optional |
System.Boolean |
The AllowCopyContactsToDeviceAddressBook parameter specifies whether contacts can be copied to the mobile device address book. |
AllowDesktopSync |
Optional |
System.Boolean |
The AllowDesktopSync parameter specifies whether the
mobile phone can synchronize with a desktop computer through a
cable. The default value is |
AllowExternalDeviceManagement |
Optional |
System.Boolean |
The AllowExternalDeviceManagement parameter specifies whether an external device management program is allowed to manage the mobile phone. |
AllowHTMLEmail |
Optional |
System.Boolean |
The AllowHTMLEmail parameter specifies whether HTML email
is enabled on the mobile phone. The default value is
|
AllowInternetSharing |
Optional |
System.Boolean |
The AllowInternetSharing parameter specifies whether the
mobile phone can be used as a modem to connect a computer to the
Internet. The default value is |
AllowIrDA |
Optional |
System.Boolean |
The AllowIrDA parameter specifies whether infrared
connections are allowed to the mobile phone. The default value is
|
AllowMobileOTAUpdate |
Optional |
System.Boolean |
The AllowMobileOTAUpdate parameter specifies whether the Exchange ActiveSync mailbox policy can be sent to the mobile phone over a cellular data connection. |
AllowNonProvisionableDevices |
Optional |
System.Boolean |
The AllowNonProvisionableDevices parameter specifies
whether all mobile phones can synchronize with the server running
Microsoft Exchange. When set to |
AllowPOPIMAPEmail |
Optional |
System.Boolean |
The AllowPOPIMAPEmail parameter specifies whether the
user can configure a POP3 or IMAP4 email account on the mobile
phone. The default value is |
AllowRemoteDesktop |
Optional |
System.Boolean |
The AllowRemoteDesktop parameter specifies whether the
mobile phone can initiate a remote desktop connection. The default
value is |
AllowSimplePassword |
Optional |
System.Boolean |
The AllowSimplePassword 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 |
The AllowSMIMEEncryptionAlgorithmNegotiation parameter specifies whether the messaging application on the mobile phone can negotiate the encryption algorithm if a recipient's certificate doesn't support the specified encryption algorithm. |
AllowSMIMESoftCerts |
Optional |
System.Boolean |
The AllowSMIMESoftCerts parameter specifies whether
S/MIME software certificates are allowed. The default value is
|
AllowStorageCard |
Optional |
System.Boolean |
The AllowStorageCard parameter specifies whether the
mobile phone can access information stored on a storage card. The
default value is |
AllowTextMessaging |
Optional |
System.Boolean |
The AllowTextMessaging parameter specifies whether text
messaging is allowed from the mobile phone. The default value is
|
AllowUnsignedApplications |
Optional |
System.Boolean |
The AllowUnsignedApplications parameter specifies whether
unsigned applications can be installed on the mobile phone. The
default value is |
AllowUnsignedInstallationPackages |
Optional |
System.Boolean |
The AllowUnsignedInstallationPackages parameter specifies
whether unsigned installation packages can be executed on the
mobile phone. The default value is |
AllowWiFi |
Optional |
System.Boolean |
The AllowWiFi parameter specifies whether wireless
Internet access is allowed on the mobile phone. The default value
is |
AlphanumericPasswordRequired |
Optional |
System.Boolean |
The AlphanumericPasswordRequired parameter specifies
whether the password for the mobile phone must be alphanumeric. The
default value is |
ApprovedApplicationList |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.ApprovedApplicationCollection |
The ApprovedApplicationList parameter specifies a list of approved applications for the mobile phone. |
AttachmentsEnabled |
Optional |
System.Boolean |
The AttachmentsEnabled parameter specifies whether
attachments can be downloaded. When set to |
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch. |
DeviceEncryptionEnabled |
Optional |
System.Boolean |
The DeviceEncryptionEnabled parameter specifies whether
encryption is enabled. The DeviceEncryptionEnabled
parameter, when set to |
DevicePolicyRefreshInterval |
Optional |
Microsoft.Exchange.Data.Unlimited |
The DevicePolicyRefreshInterval parameter specifies how often the policy is sent from the server to the mobile phone. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory. |
IrmEnabled |
Optional |
System.Boolean |
The IrmEnabled parameter specifies whether Information Rights Management (IRM) is enabled for the mailbox policy. |
IsDefault |
Optional |
System.Boolean |
The IsDefault parameter specifies whether this policy is
the default Mobile Device mailbox policy. The default value is
|
MaxAttachmentSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
The MaxAttachmentSize parameter specifies the maximum
size of attachments that can be downloaded to the mobile phone. The
default value is |
MaxCalendarAgeFilter |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.CalendarAgeFilterType |
The MaxCalendarAgeFilter parameter specifies the maximum range of calendar days that can be synchronized to the device. The value is specified in days. |
MaxEmailAgeFilter |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.EmailAgeFilterType |
The MaxEmailAgeFilter parameter specifies the maximum number of days of email items to synchronize to the mobile phone. The value is specified in days or by entering one of the following values.
|
MaxEmailBodyTruncationSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
The MaxEmailBodyTruncationSize parameter specifies the maximum size at which email messages are truncated when synchronized to the mobile phone. The value is specified in kilobytes (KB). |
MaxEmailHTMLBodyTruncationSize |
Optional |
Microsoft.Exchange.Data.Unlimited |
The MaxEmailHTMLBodyTruncationSize parameter specifies the maximum size at which HTML-formatted email messages are synchronized to the mobile phone. The value is specified in KB. |
MaxInactivityTimeLock |
Optional |
Microsoft.Exchange.Data.Unlimited |
The MaxInactivityTimeLock parameter specifies the length of time that the mobile phone can be inactive before the password is required to reactivate it. You can enter any interval between 30 seconds and 1 hour. The default value is 15 minutes. The format of the parameter is hh.mm:ss, for example, 15:00 = 15 minutes. |
MaxPasswordFailedAttempts |
Optional |
Microsoft.Exchange.Data.Unlimited |
The MaxPasswordFailedAttempts parameter specifies the
number of attempts a user can make to enter the correct password
for the mobile phone. You can enter any number from 4 through 16.
The default value is |
MinPasswordComplexCharacters |
Optional |
System.Int32 |
The MinPasswordComplexCharacters parameter specifies the minimum number of complex characters required in a mobile phone password. A complex character isn't a letter. |
MinPasswordLength |
Optional |
System.Int32 |
The MinPasswordLength parameter specifies the minimum
number of characters in the device password. You can enter any
number from 1 through 16. The maximum length a password can be is
16 characters. The default value is |
MobileOTAUpdateMode |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.MobileOTAUpdateModeType |
This parameter is reserved for internal Microsoft use. |
Name |
Optional |
System.String |
The Name parameter specifies the friendly name of the Mobile Device mailbox policy. |
PasswordEnabled |
Optional |
System.Boolean |
The PasswordEnabled parameter specifies whether a
password is required. When set to |
PasswordExpiration |
Optional |
Microsoft.Exchange.Data.Unlimited |
The PasswordExpiration 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. |
PasswordHistory |
Optional |
System.Int32 |
The PasswordHistory parameter specifies the number of previously used passwords to store. When a user creates a password, the user can't reuse a stored password that was previously used. |
PasswordRecoveryEnabled |
Optional |
System.Boolean |
The PasswordRecoveryEnabled parameter specifies whether
the recovery password for the mobile phone is stored on an Exchange
server. When set to |
RequireDeviceEncryption |
Optional |
System.Boolean |
The RequireDeviceEncryption parameter specifies whether
encryption is required on the device. The default value is
|
RequireEncryptedSMIMEMessages |
Optional |
System.Boolean |
The RequireEncryptedSMIMEMessages parameter specifies
whether you must encrypt S/MIME messages. The default value is
|
RequireEncryptionSMIMEAlgorithm |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.EncryptionSMIMEAlgorithmType |
The RequireEncryptionSMIMEAlgorithm parameter specifies what required algorithm must be used when encrypting a message. |
RequireManualSyncWhenRoaming |
Optional |
System.Boolean |
The RequireManualSyncWhenRoaming parameter specifies
whether the mobile phone must synchronize manually while roaming.
The default value is |
RequireSignedSMIMEAlgorithm |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.SignedSMIMEAlgorithmType |
The RequireSignedSMIMEAlgorithm parameter specifies what required algorithm must be used when signing a message. |
RequireSignedSMIMEMessages |
Optional |
System.Boolean |
The RequireSignedSMIMEMessages parameter specifies whether the mobile phone must send signed S/MIME messages. |
RequireStorageCardEncryption |
Optional |
System.Boolean |
The RequireStorageCardEncryption parameter specifies whether storage card encryption is enabled for the mailbox policy. |
UnapprovedInROMApplicationList |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
The UnapprovedInROMApplicationList parameter contains a list of applications that can't be run in ROM. |
UNCAccessEnabled |
Optional |
System.Boolean |
The UNCAccessEnabled parameter specifies whether access to Microsoft Windows file shares is enabled. Access to specific shares is configured on the Exchange ActiveSync virtual directory. |
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch. |
WSSAccessEnabled |
Optional |
System.Boolean |
The WSSAccessEnabled parameter specifies whether access to Microsoft Windows SharePoint Services is enabled. Access to specific shares is configured on the Exchange ActiveSync virtual directory. |
Input Types
To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.
Return Types
To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.