Skip to Content
Communication Square LLC Help Center

How to generate and export Active Directory (AD) user reports that contain the display names of their managers

Written October 2020. Microsoft changes these admin screens often, so the screenshots below may not match what you see today. The sequence of steps is usually still correct — if something looks wrong, tell us and we'll update it.

Description:

This script is used to get CSV file which contain all the user in the On-Prem AD and their Manager

Script:

import-module activedirectory 

Get-ADUser -Filter * -Properties *| Select name, @{n='Manager';e={(Get-ADUser $_.manager).name}} | export-csv "c:\export.csv" -NoTypeInformation

Last updated on