Forum Discussion
vignesh_Learn
Jan 28, 2021Copper Contributor
export email address as array list
I am trying to export a list of users email address in array format.. say I have 10 users in a CSV file (displayname) Need a command to export their emailaddresses in array type example: colum1 s...
VasilMichev
Jan 28, 2021MVP
Use PrimarySmtpAddress for the second column, and something like ($_.EmailAddresses -join ";") for the third. The syntax will depend on whether you are running this against EMS or Remote Exchange PowerShell.
vignesh_Learn
Jan 28, 2021Copper Contributor
VasilMichev I am running this in Remote exchange powershell.