Will Invoke-GlobalMailSearch work in the same way? I'm having trouble with O365
Invoke-GlobalMailSearch -ExchHostname outlook.office365.com -EmailList GAB.txt -AdminUserName (domain\memberofExchangeOrganizationAdministrators) -AdminPassword Password1 -OutputCSV here.csv
Hey ArgyleD, Currently Invoke-GlobalMailSearch doesn't work with O365. One option you could possibly do to achieve the same results would be to login to the O365 Admin portal and do a compliance search as detailed in this blog post: https://msitpros.com/?p=3678.
I will look into seeing if there is anyway Invoke-GlobalSearch could do this for O365.
Hope that helps!