Here some short article for today…
In the morning an IT admin was asking me if it is possible to configure the out of Office message daily.

When a user (let’s call him John) is on vacation, normally he sets an Out of Office message in his Outlook or OWA. If a user (let’s say Sofia) is sending a mail to John today, she will receive an OOF message.

Now Sofia knows, John is on vacation. Two days later Sofia sends again a Mail to John and she doesn’t receive again an OOF Message. So she thinks John has read the Mail and will do the action which is requested on Sofias Mail.

John of course doesn’t know about Sofias message, because he is still on vacation.


So how to make sure, that users get informed again that John is not in the office? Is it possible to reset Out of Office that it will return the OOF reply every day?

By PowerShell?

Well – Yes!

In my case today in the morning I fixed the request in the following way:

$enabled = get-mailbox -resultsize unlimited | get-mailboxautoreplyconfiguration | where {$_.autoreplystate -eq "enabled"} | select identity,autoreplystate
$enabled | foreach-object {
set-mailboxautoreplyconfiguration $_.identity -autoreplystate "Disabled"
set-mailboxautoreplyconfiguration $_.identity -autoreplystate $_.autoreplystate