Want to set an out of office reply for an account in Exchange 2013? Here's how:
GET
To get the current settings:
Get-MailboxAutoReplyConfiguration foo.user
SET
To set the Out of Office reply:
Set-MailboxAutoReplyConfiguration foo.user -AutoReplyState Scheduled `-StartTime “10/14/2019” -EndTime “12/15/2019” `-ExternalMessage “Type External automatic reply here” ` -InternalMessage “Type External automatic reply here”
EXAMPLE
It can be tough to set escpecially if you have double-quotes. The backtick when used at the end of the line is used to join to the next line. Also, the backtick is used to escape the double-quote. Example for escaping quotes:
Set-MailboxAutoReplyConfiguration foo.user –AutoReplyState Scheduled `-StartTime “10/14/2019” -EndTime “12/15/2019” `–ExternalMessage “
I'm out of office due to sudden medical leave. Please contact Other User (
Thank you.
-InternalMessage “
I'm out of office due
to sudden medical leave. Please contact Other User
(
Thank
you.