Managing automatic replies and out-of-office settings for a user
Since Exchange 2010, we've got a valuable 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 2016.
How to do it...
- To view the Out of Office settings for a mailbox, use the following syntax:
Get-MailboxAutoReplyConfiguration dave
- You can change the Out of Office settings for a mailbox using the following syntax as shown:
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 for the mailbox autoreply configuration:
Set-MailboxAutoReplyConfiguration...