Enable or disable IMAP, POP, OWA, MAPI, or Exchange ActiveSync for a mailbox in Exchange Server in office365
1. Connect to office365 PowerShell –
2. To see the current state for the mailbox – type : Get-CASMailbox -Identity “Mailbox identity”
(Where mailbox identity is the mailbox name)
3. To Disable one of the services type:
Set-CASMailbox -Identity idit -OWAEnabled $False
To enable on of the services type
Set-CASMailbox -Identity idit -OWAEnabled $True
To enable\disable service for all mailboxes type:
Get-CASMailbox |Set-CASMailbox -OWAEnabled $False
Check: