Hi All,
I am struggling with building a script to pull a list of AD users from a .csv and exports a list with their username, name, and managers email. I can pull this information using the below line but I can't seem to get it to pull from users listed in my .csv. Any help would be great! Thank you!
Get-ADUser -filter * -properties * | select Displayname, EmailAddress, @{Name="ManagerEmail";Expression={(get-aduser -property emailaddress $_.manager).emailaddress}}