This article applies to:

Exchange 2016, Exchange Online, Office 365

Let’s say you have a shared mailbox Marketing, used by the marketing department and you want to set an OOF message during holidays.

Setting an OOF message on a shared mailbox is actually possible, and you can achieve that by using PowerShell. Here is an command example:

Copy to Clipboard

You can also set additional options, for example exact time when the on will be turned on and turned off, to automatically refuse meeting requests during the period.

To get full details on possible use the following command:

Copy to Clipboard

In order to check what is actually set, use the Get- equivalent of the command:

Copy to Clipboard