We have a hybrid email environment (On-Premise + O365)
With the use of Powershell, i'm trying to get a list of mailboxes that meet the following criteria and after which will output the data to a csv file.
1. Contain a specific domain (ex. *@special.com)
2. Is a shared mailbox
I would greatly appreciate if you can provide a command/script.
Thank you so much for your help.