September 4, 2013

Exchange 2010 - Scheduled mailbox auto-reply

How to setup auto-reply for mailbox during time period? e.g. everyday started from 6 P.M. to 9 A.M. 

On client (server) with exchange management tools installed create two windows basic tasks:

First one "Auto-reply enabled" (name is up to you) with following script syntax which occurs every day at 6 P.M.:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\V14\Bin\ExShell.psc1" -Command ". Set-MailboxAutoReplyConfiguration -identity NAME_OF_MAILBOX -AutoReplyState Enabled"

Second one "Auto-reply disabled" which occurs every day at 9 A.M:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\V14\Bin\ExShell.psc1" -Command ". Set-MailboxAutoReplyConfiguration -identity NAME_OF_MAILBOX -AutoReplyState Disabled"

No comments:

Post a Comment