Microsoft Exchange: Mailboxes forwarding to Specific Mailbox

 The following will list all mailboxes on your tenant that are forwarding to the specified recipient.


$RecipientCN = (get-recipient johndoe).Identity
Get-Mailbox -ResultSize Unlimited -Filter {ForwardingAddress -ne $null} | Where-Object {$_.ForwardingAddress -eq $RecipientCN}

Huge thanks to Grant for answering pr0digy's question over on Stack Overflow

Comments

Popular posts from this blog

Create Profiles for Managing Microsoft Exchange using Windows Terminal (Online and On-Prem)

Give a User 'SendAs' permssions to a Mail-Enabled AD Group in Exchange Online

Get a User's Active Directory Groups