Hi Guys,<\/p>\n
I am very new to Powershell and i am currently struggling on writing a script that will import information from a CSV.<\/p>\n
Column A has a header of ‘samaccountname’ and column b has a header of ‘employeeNumber’.<\/p>\n
I am looking to update all ‘samaccountnames’ with the 'employee number from column B.<\/p>\n
I know this is probably something simple. I had success yesterday just importing information from a CSV with the script Import-csv “filename.csv” | %{ add-adgroupmember “groupname” -members $_.samaccountname }<\/p>\n
But i cant seem to work out how to make powershell update all of column A with column B. I hope that makes sense.<\/p>\n
Sam<\/p>","upvoteCount":3,"answerCount":12,"datePublished":"2019-09-03T12:41:37.000Z","author":{"@type":"Person","name":"spiceuser-6qogk","url":"https://community.spiceworks.com/u/spiceuser-6qogk"},"acceptedAnswer":{"@type":"Answer","text":"