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 automatic replies and out of office settings for a user


Exchange 2010 has introduced a new set of cmdlets that can be used to manage and automate the configuration of a user's Out of Office settings. In this recipe, we'll take a look at how to use these cmdlets from the Exchange Management Shell.

How to do it...

  1. To view the Out of Office settings for a mailbox, use the following syntax:

    Get-MailboxAutoReplyConfiguration dave
  2. You can change the Out of Office settings for a mailbox using the syntax shown next. For example, to disable Out of Office for a mailbox, use the following command:

    Set-MailboxAutoReplyConfiguration dave -AutoReplyState Disabled

How it works...

Retrieving the settings for a mailbox simply requires that you run the Get-MailboxAutoReplyConfiguration cmdlet and specify the identity of the mailbox, as shown in the previous example. The Set-MailboxAutoReplyConfiguration cmdlet supports multiple parameters that can be used to customize the settings use for the mailbox autoreply...