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 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 ...

Get Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.