Getting all Mailboxes with SMTP forwarding using Exchange Online PowerShell.

Sample Output

amazon.com: 20
microsoft.com: 5
hotmail.com: 55

PowerShell Code

Note: This code requires the Exchange Online Management module.

Updated: