Hi There,
I want to be able to Add/update employeeID attribute in AD from a CSV import, the CSV will have two columns: Email address and EmployeeID, so I want the script to be able to search for the user using email address and then add the corresponding Employee ID. I have no scripting skills and only have the below as a starting point, is someone able to help and see where i've gone wrong.
Import-CSV C:\EIDUpdateTEST1.csv | ForEach-Object {
EmployeeID $($user.EmployeeID)
Get-ADUser -Filter "EmailAddress -eq '$($user.EmailAddress)'" | Set-ADUser -EmployeeID $($user.EmployeeID)
Thank you in advance.
Perez