Hello,<\/p>\n
I am trying to get an idea of where to start on a project.<\/p>\n
I want to write a script that will read a certain column of a csv file and compare it wit users in AD then export or write to host a file to see of they are enabled or disabled users and what OU they are in.<\/p>\n
I have a massive long roster to go through every week and it has employees that have been terminated and it has a column that has a T identifier in it. Instead of searching through what may be 200 or more lines I want to be able to have it grab every user with that T in the Colum and compare that to what is in AD (as far as in an enabled or disabled account, the have it write host or csv the findings) that then later go as far as to disable and move users via the script.<\/p>\n
Im using Googlefu as well to find ways to do this.<\/p>","upvoteCount":5,"answerCount":5,"datePublished":"2021-11-17T19:21:41.000Z","author":{"@type":"Person","name":"spiciestit","url":"https://community.spiceworks.com/u/spiciestit"},"suggestedAnswer":[{"@type":"Answer","text":"
Hello,<\/p>\n
I am trying to get an idea of where to start on a project.<\/p>\n
I want to write a script that will read a certain column of a csv file and compare it wit users in AD then export or write to host a file to see of they are enabled or disabled users and what OU they are in.<\/p>\n
I have a massive long roster to go through every week and it has employees that have been terminated and it has a column that has a T identifier in it. Instead of searching through what may be 200 or more lines I want to be able to have it grab every user with that T in the Colum and compare that to what is in AD (as far as in an enabled or disabled account, the have it write host or csv the findings) that then later go as far as to disable and move users via the script.<\/p>\n
Im using Googlefu as well to find ways to do this.<\/p>","upvoteCount":5,"datePublished":"2021-11-17T19:21:41.000Z","url":"https://community.spiceworks.com/t/powershell-script-to-compare-excel-to-ad/817268/1","author":{"@type":"Person","name":"spiciestit","url":"https://community.spiceworks.com/u/spiciestit"}},{"@type":"Answer","text":"