We help IT Professionals succeed at work.

Powershell script to populate EmployeeID attribute

Nsingh007
Nsingh007 used Ask the Experts™
on
Hi
is there a powershell script i could use to populate the employeeID attribute inAD2008r2 sp1.
I managed to unhide the attribute and it does allow me to add values to it. I have to add information for 3000 users. So, is there a script that would interrogate a csv file for example and populate the EmployeeID attribute
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
With the AD cmdlets do this

$InputList = import-csv c:\temp\userlist.csv

Foreach ($User in $Inputlist){
Set-aduser -identity $User.UserName -employeeID $User.EmployeeID
}