Get-ADuser Attributes From CSV List Of Users – PowerShell

I would like to explain how you can take a list of users, maybe from Office 365 or Azure AD, that has just their UPN, and then export their on-premise AD attributes to a csv file

Let’s get the list of users from a csv file

We then create an array for the results and a For Each loop to get the details of each user in $users

The final step is to export these to a csv file



Leave a Reply

Your email address will not be published. Required fields are marked *