Enable or disable POP3, IMAP, MAPI, Outlook Web App or Exchange ActiveSync in Office 365

This article introduces the PowerShell commands that you can use to enable or disable the following items for a mailbox in Exchange Online:

  • Post Office Protocol (POP)
  • Internet Message Access Protocol (IMAP)
  • Messaging Application Programming Interface (MAPI)
  • Outlook on the web
  • Microsoft Exchange ActiveSync

Note

Before you run any of the commands in the following steps, first connect to Exchange Online by using remote PowerShell.

Enable or disable POP3 for an Exchange Online mailbox

To enable POP3 for a specific user, run the following cmdlet:

Set-CASMailbox <Alias,Primary SMTP, or UPN> -PopEnabled $True

To disable POP3 for a specific user, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -PopEnabled $False

Enable or disable IMAP for an Exchange Online mailbox

To enable IMAP for a specific user, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -ImapEnabled $True

To disable IMAP for a specific user, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -ImapEnabled $False

Enable or disable MAPI for an Exchange Online mailbox

To enable MAPI for a specific user, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -MAPIEnabled $True

To disable MAPI for a specific user, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -MAPIEnabled $False

To use the Exchange admin center, see Enable or disable MAPI for a mailbox.

Enable or disable Outlook on the web for an Exchange Online mailbox

To enable Outlook on the web for a specific user, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -OWAEnabled $True

To disable Outlook on the web for a specific user, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -OWAEnabled $False

To use the Exchange admin center, see Enable or disable Outlook on the web for a mailbox.

Enable or disable Exchange ActiveSync for an Exchange Online mailbox

To enable Exchange ActiveSync for a specific user, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -ActiveSyncEnabled $True

To disable Exchange ActiveSync for a specific user, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -ActiveSyncEnabled $False

To use the Exchange admin center, see Enable or disable Exchange ActiveSync for a mailbox.

Enable or disable Exchange Web Services (EWS) for an Exchange Online mailbox

To enable EWS for an Exchange Online mailbox, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -EWSEnabled $True

To disable EWS for an Exchange Online mailbox, run the following cmdlet:

Set-CASMailbox <Alias, Primary SMTP, or UPN> -EWSEnabled $False

Still need help? Go to Microsoft Community.