Forum Discussion
How to Set Auto-Reply for Group Mailboxes with PowerShell
Microsoft recently added the ability to set auto-reply for group mailboxes. In this article, we explain why you'd want to do such a thing and go through some PowerShell code to show how to set appropriate auto-reply messages for team-enabled Microsoft 365 Groups with PowerShell.
https://practical365.com/set-auto-reply-group-mailbox-powershell/
6 Replies
Works perfectly for me - this is from a group mailbox on another (test) tenant that I configured with a special autoreply (just for you).
- TraconisTin Contributor
Thanks for your contribution. I will raise an internal ticket with Microsoft as this clearly indicates some issues on my tenant.
Setting an auto-reply for a group mailbox works for me. I used the same PowerShell from the article to update the auto-reply for a group mailbox. Waited 2 minutes. Sent a message to the group mailbox, and bingo!
- TraconisTin Contributor
Thanks! This means there may be some tenant's specific restrictions in the background or yet another "weird" Microsoft bug :( Configured with SET and GET confirms all changes in place. However despite waiting a few hours no reply is being sent at all (regardless of the sender's domain).
PS C:\Windows\System32\WindowsPowerShell\v1.0> Get-MailboxAutoReplyConfiguration -Identity 'email address removed for privacy reasons' AutoDeclineFutureRequestsWhenOOF : False AutoReplyState : Enabled CreateOOFEvent : False DeclineAllEventsForScheduledOOF : False DeclineEventsForScheduledOOF : False EventsToDeleteIDs : EndTime : 31/12/2026 23:59:59 ExternalAudience : All ExternalMessage : <html> <body> Please note that this inbox is not monitored and messages sent here will not be reviewed or actioned.<br> If you need to contact the xxxx, please send your email to: <a href="mailto:email address removed for privacy reasons"> email address removed for privacy reasons</a><br> Many thanks<br> </body> </html> InternalMessage : <html> <body> Please note that this inbox is not monitored and messages sent here will not be reviewed or actioned.<br> If you need to contact the xxxx, please send your email to: <a href="mailto:email address removed for privacy reasons"> email address removed for privacy reasons</a><br> Many thanks<br> </body> </html> DeclineMeetingMessage : OOFEventSubject : StartTime : 25/08/2026 10:00:00 Recipients : ReminderMinutesBeforeStart : 0 ReminderMessage : MailboxOwnerId : [redactedGUID] Identity : [redactedGUID] IsValid : True ObjectState : Unchanged
- saleha15Brass Contributor
This is a useful guide for Microsoft 365 administrators managing group mailboxes. The PowerShell approach makes it much easier to standardize auto-reply messages and keep users informed when teams are unavailable.
I especially like the practical focus on using PowerShell to manage these settings efficiently across Microsoft 365 Groups.
- TraconisTin Contributor
EDIT 2026/08/25 16:02: It seems the solution may not work for everyone but only in very specific case. Whoever experience this, I advise raising a support ticket with Microsoft.
It looks like it is no longer working as expected for group mailboxes. Get- return the expected configuration however server silently ignores it and nothing happens :(