How to disable Exchange ActiveSync for users in Office 365

This article describes how to disable Microsoft Exchange ActiveSync for users in Microsoft Office 365.
Office 365 admins can use the following to disable Exchange ActiveSync access for users.
  • Exchange Online PowerShell
  • Exchange admin center

Exchange Online PowerShell

To disable ActiveSync for users by using Exchange Online PowerShell, follow these steps:
  1. Connect to Exchange Online by using remote PowerShell. For more information about how to do this, go to the following Microsoft website:
  2. Do one of the following:
    • To disable ActiveSync connectivity for a single user, run the following command:
      Set-CASMailbox -Identity <Mailbox ID> -ActiveSyncEnabled $False
    • To disable ActiveSync connectivity for a group of users, use the Get-User cmdlet to change the scope of the command.

      For example, to disable ActiveSync for all the users in the Sales department, run the following command:
      Get-User -RecipientTypeDetailsUserMailbox | where {$_.Department -eq "Sales"} | Set-CASMailbox -ActiveSyncEnabled $False
    • To disable ActiveSync for all users in an organization, run the following command:
      Get-Mailbox | Set-CasMailbox -ActiveSyncEnabled $False

Exchange admin center

To disable ActiveSync for users in Office 365 by using the Exchange admin center, follow these steps:
  1. Sign in to the Office 365 portal ( as a global admin.
  2. Click Admin, and then click Exchange.
  3. In the left navigation pane, click recipients, and then click mailboxes.
  4. Select the user mailbox that you want to change, and then click Edit (A screen shot of the Edit icon ).
  5. Click mailbox features, and then click Disable Exchange ActiveSync.

    A screen shot of the Mailbox Feature dialog box
  6. Click OK.
For more information about the Windows PowerShell cmdlets that are mentioned in this article, go to the following Microsoft TechNet websites:
Still need help? Go to the Office 365 Community website.

Article ID: 2795303 - Last Review: 07/13/2014 13:01:00 - Revision: 12.0

Microsoft Exchange Online

  • o365 kbgraphxlink o365022013 o365a o365e o365p o365m kbgraphic KB2795303