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
Latest posts by Dejan Foro (see all)
- FAQ 000181 – How to enable mailbox auditing using PowerShell - August 1, 2023
- FAQ 000180 – How to set Microsoft Teams Room Device to use internal NTP server - December 15, 2021
- FAQ 000178 – How to change the sender and reply E-mail address in Microsoft Bookings - January 11, 2021
Why not using ECP as for any other mailbox? Impersonation and therefore setting OOF via ECP is also possible for shared mailboxes 😉 (just tested on our Exchange 2016 onpremise)
Thanks for your feedback, Peter. Yes, that is correct it can be done via ECP as well. The reason why it is done via PowerShell in this article is fairly simple: I had a customer who wanted to be able to that via a PowerShell script. Reason: They wanted to enable a secretary to activate OOF for people who call in sick, without giving her administrative access to Exchange. Solution was to provide her with a preformated csv file where she can enter people identities and the OOF message. From there, the values a picked up by a PowerShell script that is scheduled to run every 30 minutes and activates the OOF and sets the OOF message for those users. So I thought it might be useful to others to schowcase that it can be done via PowerShell and what commandlets to use.