Powershell send list of emails and aliases to csv file
Office 365 Exchange send list of emails and aliases to csv file
Get-Mailbox | Select-Object DisplayName,@{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_ -LIKE “SMTP:*”}}} | Sort | Export-Csv <file path i.e. C:\Users\admin\Desktop\test.csv>