Office 365 Get list of all users on the server KB1039751


Start by referring to KB1039659 to get connected to the O365 server

the command is simple:

get-user | Export-Csv C:users%username%DesktopLicensedUsers.csv

the file path and name is arbitrary so if you want to change it that would be fine otherwise this should create a .cvs file on your desktop called LicensedUsers.csv

You will have to look at the .cvs and delete the colums that are not needed if you are sending it to someone

Pro tip: Ctrl + – (minus sign) will allow you to delete rows 

Leave a Reply