I created a Report to report all Employees, and the following information: Name, Email, First Name, Last Name, Department, Office, Manager and Manager Email.
However, the Manager Email field is blank. I suppose because it's a property of the Manager, not of the user.
Is there a way in reporting to get that as well?
In Powershell, I have a script that will do that here. Not sure how to work this into the reports though. Also, it grabs everything, I'd like to narrow it down to our Employees OU, and not any sub OU's in that container.
Get-ADUser -filter * -properties * | select Displayname, Givenname, Surname, EmailAddress, Department, Office, Manager, @{Name="ManagerEmail";Expression={(get-aduser -property emailaddress $_.manager).emailaddress}}