In the current article, we review of to use the PowerShell cmdletsSet-CASMailbox that is used for disabling (or enable) access to specific types of mail client or mail client that uses a specific protocol to Exchange mailboxes.

PowerShell | Help & additional information

Running PowerShell commands in Office 365 based environment To be able to run the PowerShell commands specified in the current article, you will need to create a remote PowerShell with Azure Active Directory or Exchange Online. In case that you need help with the process of creating a Remote PowerShell session, you can use the links on the bottom of the Article.

One of the most conspicuous advantages of Exchange server is, his ability to “expose” the Exchange mailbox to a various type mail client and to various mail protocols.

By default, Exchange server is configured to allow Exchange clients to use all the available mail protocols using all the supported mail clients.

In some scenarios, we as Exchange Administrator, need to “prevent” Exchange client from using a specific protocol or a specific mail client.

For example, in a scenario in which our client experiences strange problems such as mail that disappear or other problems. To be able to locate the specific mail client that is causing this problem, we can implement a troubleshooting method in which we disable all the available mail protocol beside one protocol such as – OWA mail client, and then verify if the problem still occurs. The rest of the process is implemented by enabling each time additional mail client until we locate the not functioning or problematic mail client.

The following table includes a summary of the mail protocol and mail client that we review in the current article:

Disable MicrosoftOutlook for Mac clients access to Exchange mailbox

The EwsAllowMacOutlook parameter enables or disables access to the mailbox by MicrosoftOutlook for Mac clients that use Exchange Web Services (for example, Outlook for Mac 2011 or later). The default value is $True.

To disable Exchange Online Mac recipient access Microsoft Outlook for Mac protocol, we set the EwsAllowMacOutlook value to $False

Creating a remote PowerShell session to Azure Active Directory To get more information about the required software component + the remote PowerShell commands that you need to use for connecting Azure Active Directory, read the following article: Part 2: Connect to Office 365 by using Remote PowerShell

Basic introduction to PowerShell in Office 365 based environment If you are new in the PowerShell world, you can read more information about how to start working with PowerShell in Office 365 based environment in the following article series: Getting started with Office 365 PowerShell – Part 1, Part 2, Part 3.

Running and using o365info PowerShell scripts In case that you need more information about how to use the o365info PowerShell scripts that I add to the PowerShell articles, you can read the article – How to run and use o365info PowerShell menu script

Now it’s Your Turn! It is important for us to know your opinion on this article

PowerShell command syntax – Office 365 | Article series index

Please rate this

Sample rating item

Summary

Article Name

Disable Access to Service (protocol ) by using PowerShell | Office 365

Description

In the current article, we will review how to use the PowerShell commands for disabling a specific access protocol in Exchange Online environment.