In powershell when connected to my Office 365 service..
When i try to get the mailbox statistics for our users it shows an error for those who have multiple mailboxes.
This is the cmdlet that i have run
get-mailbox | get-mailboxstatistics | Select DisplayName, ItemCount, TotalItemSize | Sort-Object TotalItemSize -Descending | Export-CSV C:\Users.csv
I have tried to specify the exact mailbox by email address but still get the same error, is there any other cmdlet that i can use which will show me the statistics that i need?