Configure Scheduled Out-of-Office Replies with Exchange PowerShell
The Set-MailboxAutoReplyConfiguration cmdlet is available in Exchange Server and Exchange Online. This example schedules an internal and external automatic reply for a mailbox.
Set-MailboxAutoReplyConfiguration `
-Identity [email protected] `
-AutoReplyState Scheduled `
-StartTime "2026-08-20 08:00" `
-EndTime "2026-08-24 08:00" `
-InternalMessage "I am away and will respond when I return." `
-ExternalMessage "I am away and will respond when I return." `
-ExternalAudience AllTo disable automatic replies:
Set-MailboxAutoReplyConfiguration `
-Identity [email protected] `
-AutoReplyState DisabledUse dates and messages appropriate for your organisation, and confirm the mailbox identity before running the command.