Exchange 2010: Enable or disable mailbox features for all mailboxes
To enable the mailbox features ActiveSync, Outlook Web App and Outlook Anywhere for all users, the following command can be used: get-mailbox -resultsize Unlimited | Set-CASMailbox -OWAEnabled $false -ActiveSyncEnabled $false -MAPIBlockOutlookRpcHttp $true To enable the mailbox features for all users again, the following command is sufficient: get-mailbox -resultsize Unlimited | Set-CASMailbox -OWAEnabled $true -ActiveSyncEnabled $true -MAPIBlockOutlookRpcHttp $false