Commands › Exchange Online
Set-CASMailboxPlan
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.