Forum Discussion

TomasG's avatar
TomasG
Brass Contributor
Dec 19, 2023

How to set automatic replies to emails for several users (or whole organization) in bulk?

Hi, 

is possible to set automatic replies to recieved emails for several users in bulk? I can't find it anywhere in EAC. 

I found the settings for single user. So my question is, is it possible to set an automatic response for several users (or the whole organization) at once?

Thanks for any advice

  • One way would be to dump the email addresses in a CSV file, then use it as input for the Set-MailboxAutoReplyConfiguration cmdlet:

    Import-CSV blabla.csv | % { Set-MailboxAutoReplyConfiguration -Identity $_.EmailAddress -AutoReplyState Enabled -InternalMessage "I'm OOO bla bla" }

    where the CSV file has a column "EmailAddress" to identify each user. Don't forget to add the remaining parameters as needed, you can get details on each of them here:
  • You can easily do this via PowerShell and the Set-MailboxAutoReplyConfiguration cmdlet. There is no UI method.

    You can also configure something similar via mailbox rules, the benefit here is that replies will be sent on every new message (whereas the auto-reply functionality is limited to one message per recipient). The downside is, that requires a lot more effort to configure. Just in case, here's a sample article with the steps: https://www.michev.info/blog/post/5773/configure-an-auto-reply-rule-for-microsoft-365-mailboxes-via-ews


    • TomasG's avatar
      TomasG
      Brass Contributor
      Hi Vasil,

      What you write is true. I decided to go the PowerShell route. But I have a request. Can you advise me how to modify the command Set-MailboxAutoReplyConfiguration [-Identity].

      I need this configuration for "whole" organization. But I need exclude some email address (maybe 10 address). Is there any way how to make it?

      Thanks.
      • One way would be to dump the email addresses in a CSV file, then use it as input for the Set-MailboxAutoReplyConfiguration cmdlet:

        Import-CSV blabla.csv | % { Set-MailboxAutoReplyConfiguration -Identity $_.EmailAddress -AutoReplyState Enabled -InternalMessage "I'm OOO bla bla" }

        where the CSV file has a column "EmailAddress" to identify each user. Don't forget to add the remaining parameters as needed, you can get details on each of them here:

Resources