I'm trying to Import-Csv "Newusers.csv" that is an export from a payroll system. I need to import this to Active Directory and need to update the physicalDeliveryOfficeName column in the CSV file for each user.
Currently the export from the payroll system users a code for the sitename. I need to replace this code with the site name. I have a hashtable that has the site code = site name. I have over 100 site locations.
$hashtable = @{
28 = 'Example Site 1'
29 = 'Example Site 2'
36 = 'Example Site 3'
37 = 'Example Site 4'
50 = 'Example Site 5'
51 = 'Example Site 6'
52 = 'Example Site 7'
53 = 'Example Site 8'
}