O365 Export user profile data to a CSV file

Published on Author tipratzLeave a comment

If you need to export all your o365 user profile data to a CSV file you can use the following command:

Get-MsolUser | Select-Object DisplayName,UserPrincipalName,Title,Department,StreetAddress,City,Country,Office,PhoneNumber,MobilePhone,PreferredLanguage | Export-Csv c:\userinfo.csv

Leave a Reply