Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Managing ActiveSync, OWA, POP3, and IMAP4 mailbox settings


You can use the Exchange Management Shell to configure a user's ability to access CAS services such as ActiveSync, OWA, POP3, and IMAP4. You can also allow or disallow MAPI connectivity and the ability to connect to Exchange using Outlook Anywhere. In this recipe, you'll learn techniques used to control these settings, whether it is done interactively through the shell or using an automated script.

How to do it...

To control access to CAS services for a mailbox, use the Set-CASMailbox cmdlet. Here's an example of how you might use this cmdlet:

Set-CasMailbox -Identity 'Dave Smith' `
-OWAEnabled $false `
-ActiveSyncEnabled $false `
-PopEnabled $false `
-ImapEnabled $false

This command will disable Outlook Web App (OWA), ActiveSync, POP3, and IMAP4 for the mailbox belonging to Dave Smith.

How it works...

When you create a mailbox, OWA, ActiveSync, POP3, IMAP4, and MAPI access are enabled by default. For most organizations, these default...