Skip to content

Configure Scheduled Out-of-Office Replies with Exchange PowerShell

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 All

To disable automatic replies:

Set-MailboxAutoReplyConfiguration `
    -Identity [email protected] `
    -AutoReplyState Disabled

Use dates and messages appropriate for your organisation, and confirm the mailbox identity before running the command.