I am looking for a powershell or vbscript which will update below from CSV file
Samaccountname,employeeId,Title,Manager - Csv file header format
I would like to search based on Samaccountname and update EmployeeID, Title, Manager for all users in Forest
I can do this specific to domain but i would like to search entire forest and use a single script to update all users. ( i don't want to run this on individual domains as we have multiple child domains)
As you know Manager needs to be DN (distinguished name) not sure how to search this in forest and update users
Can this also be customised for updating muti valued attribute also if needed to change attributes in future?
Should get some kind of logging too so that if existing attribute for user manager or employeeID or Title is equal to CSV file just say "No changes or no update required" and if there is any error updating "Error for this sameaccountname" and if successful "successfully udpated"
is it possible to create 3 logs file for 3 attributes?