Set Out of Office on a Mailbox using Powershell for Exchange

To get the existing settings

Get-MailboxAutoReplyConfiguration “username”

To set the Out of Office (internal and external)

Set-MailboxAutoReplyConfiguration -identity “username” -AutoReplyState enabled -EndTime 08/11/2011 -InternalMessage “username will be out of the office from Friday 21st October until Tuesday 8th saving the world.” -ExternalMessage “username will be out of the office from Friday 21st October until Tuesday 8th saving the world.” 

To disable Out of Office/Auto Reply

Set-MailboxAutoReplyConfiguration “username” -AutoReplyState disabled

To disable Out of Office/Auto Reply and clear the Internal/External message

Set-MailboxAutoReplyConfiguration -identity “username” -AutoReplyState disabled -InternalMessage “” -ExternalMessage “”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.