Commands › Exchange Online

Set-ActiveSyncOrganizationSettings

Exchange Online ExchangeOnlineManagement Set-*

Set the Exchange ActiveSync settings for the organization.

Quick start script

# Set-ActiveSyncOrganizationSettings — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-ActiveSyncOrganizationSettings
$before | Format-List

# 3. Make the change (dry run first)
Set-ActiveSyncOrganizationSettings  -WhatIf
Set-ActiveSyncOrganizationSettings

# 4. Verify and diff
$after = Get-ActiveSyncOrganizationSettings
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-ActiveSyncOrganizationSettings [[-Identity] <ActiveSyncOrganizationSettingsIdParameter>]
 [-AdminMailRecipients <MultiValuedProperty>]
 [-AllowAccessForUnSupportedPlatform <Boolean>]
 [-AllowRMSSupportForUnenlightenedApps <Boolean>]
 [-Confirm]
 [-DefaultAccessLevel <DeviceAccessLevel>]
 [-DomainController <Fqdn>]
 [-EnableMobileMailboxPolicyWhenCAInplace <Boolean>]
 [-OtaNotificationMailInsert <String>]
 [-TenantAdminPreference <TenantAdminPreference>]
 [-UserMailInsert <String>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (12)

ParameterTypeRequiredWhat it controls
-Identity ActiveSyncOrganizationSettingsIdParameter The Identity parameter specifies the ActiveSync organization settings object that you want to modify. The default name of this object is Mobile Mailbox Settings.
-AdminMailRecipients MultiValuedProperty The AdminMailRecipients parameter specifies the email addresses of the administrators for reporting purposes.
-AllowAccessForUnSupportedPlatform Boolean This parameter is reserved for internal Microsoft use.
-AllowRMSSupportForUnenlightenedApps Boolean This parameter is functional only in the cloud-based service.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DefaultAccessLevel DeviceAccessLevel The DefaultAccessLevel parameter specifies the access level for new and existing device partnerships. Valid values are:
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-EnableMobileMailboxPolicyWhenCAInplace Boolean This parameter is available only in the cloud-based service.
-OtaNotificationMailInsert String The OtaNotificationMailInsert parameter specifies the text to include in an email message that's sent to users who need to update their older devices to use the new Exchange ActiveSync features in Microsoft Exchange.
-TenantAdminPreference TenantAdminPreference This parameter is available only in the cloud-based service.
-UserMailInsert String The UserMailInsert parameter specifies an informational footer that's added to the email message sent to users when their mobile device isn't synchronized because the device is quarantined.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.