O'Reilly logo

Microsoft Exchange Server PowerShell Cookbook - Third Edition by Mike Pfeiffer, Jonas Andersson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Blocking Outlook clients from connecting to Exchange

Exchange gives you plenty of options to block clients from connecting to mailboxes, depending on the version of the Outlook client and the method used to access the mailbox. In this recipe, you'll learn how to configure these options using the Exchange Management Shell.

How to do it...

Let's take a look at how to block Outlook clients from connecting to Exchange using the following steps:

  1. The Set-CASMailbox cmdlet can be used to block MAPI access to mailboxes based on several factors. For example, we can prevent an individual user from using Outlook to connect using Outlook Anywhere:
    Set-CASMailbox -Identity dsmith -MAPIBlockOutlookRpcHttp $true
    
  2. In addition, we can also prevent a user whose Outlook ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required