Avatar of Christian Hans
Christian Hans
Flag for United States of America

asked on 

AD Lookup via EmployeeID > Export user info to csv

I have a CSV/TXT file with the heading of EmployeeID

How can I export a list to csv from AD that contains only the users listed in that EmployeeID file via powershell?

Example:
EmployeeID
3374
3550
3401

I want the command to find the EmployeeID "3374" (for example) and export the userprincipalname, displayname, samaccount etc...
PowershellActive Directory

Avatar of undefined
Last Comment
Daryl Bamforth

8/22/2022 - Mon