PowerShell – Get AD Attributes for list of users

This cmdlet will import the contents of a text file (C:\Temp\Users.txt) with a list of Active Directory usernames (SAMAccountName) and export a list of any attributes required to a CSV (C:\Temp\Users-Full.csv)

To see which attributes it can output run the following command