Forum Discussion
TomasG
Dec 19, 2023Brass Contributor
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 t...
- Dec 20, 2023One 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:
TomasG
Dec 20, 2023Brass 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.
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.
VasilMichev
Dec 20, 2023MVP
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:
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:
- TomasGDec 20, 2023Brass ContributorThanks a lot. It works.
And my last question, is it possible to set a formatted message? So far I managed to set the message as plain text?- TomasGDec 20, 2023Brass ContributorI found Here-String. It works for me.
$variable = @"
HTML text
"@
Then variable used in command -ExternalMessage $variable.