I have a CSV file from payroll which includes the following information that needs to be imported into Active Directory.
-Home Department ID
The only consistent and accurate information that I have is the email account which is also populated in AD. I do not have the SAM account to go off of in the CSV
I need a script (powershell) that will pull the email account from the CSV file and fill in the attributes above. Any suggestions on the best way to go about this would be appreciated. Also, a working script or example.