Commands › Exchange Online

Set-CASMailboxPlan

Exchange Online ExchangeOnlineManagement Set-*

Modify Client Access services (CAS) mailbox plans in cloud-based organizations.

Quick start script

# Set-CASMailboxPlan — 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-CASMailboxPlan
$before | Format-List

# 3. Make the change (dry run first)
Set-CASMailboxPlan -Identity <MailboxPlanIdParameter> -WhatIf
Set-CASMailboxPlan -Identity <MailboxPlanIdParameter>

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

Syntax

Set-CASMailboxPlan [-Identity] <MailboxPlanIdParameter>
 [-ActiveSyncEnabled <Boolean>]
 [-Confirm]
 [-ECPEnabled <Boolean>]
 [-EwsEnabled <System.Int32>]
 [-ImapEnabled <Boolean>]
 [-MAPIEnabled <Boolean>]
 [-OWAEnabled <Boolean>]
 [-OwaMailboxPolicy <MailboxPolicyIdParameter>]
 [-PopEnabled <Boolean>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-Identity MailboxPlanIdParameter yes The Identity parameter specifies the CAS mailbox plan that you want to modify. You can use any value that uniquely identifies the CAS mailbox plan. For example:
-ActiveSyncEnabled Boolean The ActiveSyncEnabled parameter enables or disables access to the mailbox by using Exchange Active Sync (EAS). Valid values are:
-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.
-ECPEnabled Boolean {{ Fill ECPEnabled Description }}
-EwsEnabled Int32 {{ Fill EwsEnabled Description }}
-ImapEnabled Boolean The ImapEnabled parameter enables or disables access to the mailbox by using IMAP4 clients. Valid values are:
-MAPIEnabled Boolean {{ Fill MAPIEnabled Description }}
-OWAEnabled Boolean {{ Fill OWAEnabled Description }}
-OwaMailboxPolicy MailboxPolicyIdParameter The OwaMailboxPolicy parameter specifies the Outlook on the web (formerly known as Outlook Web App) mailbox policy for the mailbox. You can use any value that uniquely identifies the policy. For example:
-PopEnabled Boolean The PopEnabled parameter enables or disables access to the mailbox by using POP3 clients. Valid values are:
-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.