Forum Discussion

OH-123's avatar
OH-123
Copper Contributor
Jul 11, 2023

looking for a way to find all accounts with automatic replies (out of office) set to on.?

Hi all , 

I am struggling to find an easy way to list all the meeting rooms in my org that have out of office messages turned on . 

i found the  -MailboxAutoReplyConfiguration but i canĀ“t use it to search all accounts with this option enabled.

any help would be appreciated in advance.

  • The Get-MailboxAutoReplyConfiguration can be run one account at a time only, but you can do something like this:

    Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited | ? { !((Get-MailboxAutoReplyConfiguration $_.UserPrincipalName).AutoReplyState -ne "Disabled") }

    Though such oneliners are probably not going to work with large set of mailboxes, so spread it out in a proper script instead.

Resources