Home > Microsoft, Office 365 > Get a list of Office365 users with License attached, Primary SMTP address and Aliases

Get a list of Office365 users with License attached, Primary SMTP address and Aliases

August 18, 2015

To get an list of all users that has an Office365 license assigned and with Displayname, Primary SMTP address and all other adresses registrated on the users use this one-liner in PowerShell! 🙂

get-mailbox | Where-Object {$_.SKUAssigned -eq “TRUE”} | Select-Object Displayname, PrimarySMTPAddress, EmailAddresses | Export-Csv c:\temp\noah2.csv -Encoding UTF8

%d bloggers like this: