Link to home
Create AccountLog in
Avatar of Christian Hans
Christian HansFlag for United States of America

asked on

Export ALL EmailAddresses in the domain into separate cells

How can I export a listing of ALL "PrimarySMTPAddress" and "EmailAddresses" users have in Exchange 2013?

When I try exporting using Get-Mailbox | FL | Select-Object DisplayName,UserPrincipalName,PrimarySMTPAddress,EmailAddresses

I export all the data but is there a way to separate or expand out the EmailAddresses output instead of having it all in one field?

I just want an export that allows me to filter later in excel by ALL domain names actually being used by users, functional or not.

Thanks in advance.
Avatar of Bob McCoy
Bob McCoy
Flag of United States of America image

Get rid of the Format-List in the middle of the pipeline.
Avatar of Minecraft_ Enderman
Minecraft_ Enderman

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account