question

LeeWil-9733 avatar image
0 Votes"
LeeWil-9733 asked RichMatheisen-8856 answered

re : How do I get the names of all Mailboxes forwarding to a certain recipient.

Hi,

How can I get the names of all Mailboxes in my Tenant that are forwarding to a certain recipient?

i.e

Get-Mailbox names where forwarding address like "bob123@contoso.com"

Thanks

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

I think you'll get a better response by adding office-exchange-online-itpro as a tag to your original post.

For an On-Prem organization, something like this might work:

 Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails UserMailbox |
     Select-Object UserPrincipalName,ForwardingSmtpAddress,DeliverToMailboxAndForward

But Exchange Online has restrictions that you may exceed by using "normal" cmdlets. Check for a Get-EXOMailbox cmdlet.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.