Link to home
Create AccountLog in
Avatar of alumwell
alumwell

asked on

Outlook 2013 - Non Working Hours (Out of Office) Autoresponder

Hi,

We are trying to find a way to set up an "out-of-office" auto-responder within outlook 2013 to reply with our own message outside of our normal working hours.

So if our working day was 8am to 5pm (Monday to Friday) emails would come to us normally, but post 5pm the senders would get the out of office message.

Rather than doing this manually every day, is there a method to do the above, that can be set to match working hours and run indefinately?

Any help greatly recieved.
Avatar of Squire
Squire
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi - Sure you can do this.

There is a technet article here that shows you the command to run.

For your example, assuming you have a central mailbox called "central" you would run:

Set-MailboxAutoReplyConfiguration -Identity central -AutoReplyState Scheduled -StartTime "%TODAY% 17:00:00" -EndTime "%TOMORROW% 08:00:00" -ExternalMessage "External out-of-hours message."

If you need a hand getting %TODAY% and %TOMORROW% from the available %DATE% variable, drop my a reply and I'll send you code for this.

If you need this for all employees, then perhaps a scheduled job for all mailboxes:

for /f %%a in (mailboxes.txt) do (
                         Set-MailboxAutoReplyConfiguration -Identity %%a -AutoReplyState Scheduled -StartTime "%TODAY% 17:00:00" -EndTime "%TOMORROW% 08:00:00" -ExternalMessage "External out-of-hours message."
                          )
Mark.
Avatar of alumwell
alumwell

ASKER

This sounded like a perfect solution until my work colleague reminded me (again)that we are using Office 365 *sigh* - would this work on that system?
I don't have Office 365 to test, but, no worries - you can compile a similar tool using this code:

http://www.telnetport25.com/2012/01/exchange-2010-out-of-office-fun-with-set-mailboxautoreplyconfiguration/

Take a look, and see if that would be a good alternative?

Mark.

edit - nope, that's 2010. I'll have a dig around and advise. Cheers.
ASKER CERTIFIED SOLUTION
Avatar of Squire
Squire
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Great sleuthing Squire :) I think this is what we need - many thanks :)
Great investigation to track down how to solve this for us within Office 365
A pleasure. Thanks for the great feedback.