Forum Discussion
adrianhalid
Jun 06, 2019Copper Contributor
seach-mailbox group mailbox
ow do you search a group mailbox.
Search-Mailbox -Identity "groupbox@mail.com" -SearchQuery 'Subject:"Hello"' -TargetMailbox me@mail.com -TargetFolder "Inbox"
When I try to search the group mailbox I get the error message. The operation couldn't be performed because object 'groupbox@mail.com' couldn't be found on 'xxxxxx.PROD.OUTLOOK.COM'.
But when I search for the mailbox I can find it.
Get-Mailbox -GroupMailbox -Identity "groupbox@mail.com"
Is it because it is a group mailbox? How do you search a group mailbox?
6 Replies
Sort By
Yup, group mailboxes are not supported. Use eDiscovery/Content search in the Security and compliance center.
- adrianhalidCopper Contributor
I have the eDiscovery Administrator role.
Is there a way to batch delete emails from a group mailbox.
I have a testing application that has sent a lot of emails to that group mailbox.
I wish to empty the entire group mailbox.
Whats the best way to do this?
You can use some EWS-based script, or simply recreate the group. Should also be possible to select all messages via Outlook and delete them in one go, but I've only tested this with groups with handful of messages.