Friday, 18 October 2019

How to export user's managers in O365?


Or, PowerShell command to export mailbox's managers in CSV format in O365

You can use the following command to export the user name along with the assigned manager details in .csv format.
------------------------------------------------------------------------------------------------
Get-user | select displayname, *manager* | Export-Csv -Path c:\managers.csv
-----------------------------------------------------------------------------------------------

Note: Please make sure you are connected to the O365 PowerShell session.

Cheers, please write me back if you have any query or feedback.

No comments:

Post a comment