Link to home
Start Free TrialLog in
Avatar of iamuser
iamuser

asked on

Script to auto populate AD field

My managers are now looking to implement employee ID codes for all staff. Problem is that we have to do it for all existing and new staff. We have about 500 user accounts, doing it manually would be a nightmare. Is there a away for me to script something that would take an excel file containing account name + code and have the system automatically input the code into the correct AD account?
SOLUTION
Avatar of Mahesh
Mahesh
Flag of India 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
SOLUTION
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 iamuser
iamuser

ASKER

Great 2 methods, with the software bulk ad user, can I use the first and last name + employee ID? Chances are HR will have it in that format rather than the username + employee ID.
ASKER CERTIFIED SOLUTION
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
You can map display name \ full name attribute with employee id
sAMAccountName is unique in AD, thats why I suggested you.
Anyways, i suggest you to export the user list from AD, and send it to HR in a format you want and ask them to fill up with Employee IDs
Bacause either you OR HR, somebody needs to do this mapping anyhow.
Hope that helps
Avatar of iamuser

ASKER

As far as I know looking at AD all users (knock on wood) have unique names

John
Avatar of iamuser

ASKER

Very true on that Mahesh
Avatar of iamuser

ASKER

Thanks, great advice