Link to home
Start Free TrialLog in
Avatar of Christian Hans
Christian HansFlag 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...
ASKER CERTIFIED SOLUTION
Avatar of Daryl Bamforth
Daryl Bamforth
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ITSysTech
ITSysTech

In addition to using a powershell command. I would highly recommend using Active Directory Explorer, it is simple to use and will allow you to create your own search criterias with ease.
Script will do as requested.