Hello<\/p>\n
I’m having new users on a regular basis. Few hundreds every week :). Instead creați get them manually I would like to import them from a CSV (using PowerShell)
\nI need the to be Active, in a specific OU, and with password.
\nCan some one give me a hand here please?
\nFound lots of articles online but not very clear…
\nMany thanks<\/p>","upvoteCount":6,"answerCount":5,"datePublished":"2015-05-28T13:39:36.000Z","author":{"@type":"Person","name":"remustincu","url":"https://community.spiceworks.com/u/remustincu"},"acceptedAnswer":{"@type":"Answer","text":"
There are a lot of examples out there. If you find one that is close and post it back here with what is missing/not working, that’d be better. Rather than us doing the whole thing.<\/p>\n
One note, to set a password at user creation you need to pass New-ADUser a SecureString object. That’s kind of a tricky part when you are first learning how to do that via powershell.<\/p>\n
$password = ConvertTo-SecureString -String \"MyPassw0rd1\" -AsPlainText -Force\n<\/code><\/pre>","upvoteCount":3,"datePublished":"2015-05-28T14:29:03.000Z","url":"https://community.spiceworks.com/t/create-ad-users-from-csv-with-passsword/407352/3","author":{"@type":"Person","name":"craigduff","url":"https://community.spiceworks.com/u/craigduff"}},"suggestedAnswer":[{"@type":"Answer","text":"Hello<\/p>\n
I’m having new users on a regular basis. Few hundreds every week :). Instead creați get them manually I would like to import them from a CSV (using PowerShell)
\nI need the to be Active, in a specific OU, and with password.
\nCan some one give me a hand here please?
\nFound lots of articles online but not very clear…
\nMany thanks<\/p>","upvoteCount":6,"datePublished":"2015-05-28T13:39:36.000Z","url":"https://community.spiceworks.com/t/create-ad-users-from-csv-with-passsword/407352/1","author":{"@type":"Person","name":"remustincu","url":"https://community.spiceworks.com/u/remustincu"}},{"@type":"Answer","text":"
Hey Remustincu,<\/p>\n
Try this script;<\/p>\n