Hoping someone can help.
I am attempting to get name, and email (both primary and secondary smtp) addresses from a get-mailbox command of all users in our system. I am running:
get-mailbox -resultsize unlimited | select-object name, emailaddresses | Export-CSV C:\allmailboxes.csv
But the command yeilds Name, Microsoft.Exchange.Data.ProxyAddressCollection instead
If I run a "get-mailbox 'my name' | select-object name, emailaddresses ...the output is correct. I see my name and both primary and secondary smtp addy's.
How do I get the information I need correctly?