Using Powershell to retrieve mail attributes
Posted on 2014-11-12
I need some help. I am trying to use Get-ADuser cmdlet to retrieve the mail attributes of each user. What I would really like is to just export into a .csv the name and the mail attribute. I tried this using ISE.
Get-ADuser -filter * -properties mail| Export-Csv C:\temp\Computer.csv
That way I could modify the .csv but it did not import the mail. Really could use some help. Thanks much in advance.