question

SundaresanChandrakanth-2366 avatar image
0 Votes"
SundaresanChandrakanth-2366 asked SundaresanChandrakanth-2366 answered

Script for setting Auto Reply in User mailbox

Hi

I have specific requirement from my organization that whenever a user resigned, i wish to set an auto reply in his / her mailbox with an alternate contact mail id. preferrably his reporting mail id auto picked as we dont want to shuffle with multiple manual contacts entries.

I wish to automate this with a powershell script so that whenever i disable his AD id and keep his mailbox active for 14 days, this auto reply will be set after disable and the id will be removed after 14 days.

The powershell script has to pick the user who has been disabled and set an MailboxAutoReplyConfiguration command for that mailbox with an external message set to contact his reporting mail id automatically picked from ad information.

Though i have ideas on bits and pieces i dont have the expertise to put it all together. if someone can help, it would really be useful.

windows-server-powershellwindows-active-directoryoffice-exchange-online-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

How about this?

set-automatic-replies-with-powershell

As an ex-email administrator this is one of the things that both annoyed me and interfered with the flow of e-mail. An uncontrolled auto-reply that sends a message to a destination that is also an uncontrolled auto-reply recipient will cause a flood of messages that will fill a mailbox (and log files, transaction logs. and mailbox database) and has the potential to degrade the ability of your system to handle normal mail.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SundaresanChandrakanth-2366 avatar image
0 Votes"
SundaresanChandrakanth-2366 answered

Hi - thanks for your reply. This requirement is only 14 days till the id is kept active and only for external mails needed. so that load will not be that much to handle i feel.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.