Book Image

Microsoft Exchange Server Powershell Cookbook (Update)

Book Image

Microsoft Exchange Server Powershell Cookbook (Update)

Overview of this book

Table of Contents (21 chapters)
Microsoft Exchange Server PowerShell Cookbook Third Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Managing automatic replies and Out of Office settings for a user


In Exchange 2010, we were introduced to 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 for Exchange 2013.

How to do it...

Let's see how to manage automatic replies and Out of Office settings using the following steps:

  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. For example, to disable the Out of Office settings 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...