This topic contains 4 replies, has 5 voices, and was last updated by
December 5, 2018 at 1:16 pm #128080ParticipantPoints: -7Rank: Member
Generally I create new users by copying a Template user I created in AD and adding it to the correct OU, but I want to know how to automate new users with excel or basic PowerShell script that will copy the Template User from AD
How can this be done
December 5, 2018 at 1:21 pm #128224ParticipantPoints: 246Rank: Participant
There are literally thousands of examples for such a task out there in the internet. Some good points to start searching are:
December 5, 2018 at 1:22 pm #128227ParticipantPoints: 815Rank: Major Contributor
Here is an article for you to start with.
December 5, 2018 at 1:22 pm #128229ParticipantPoints: 36Rank: Member
new-aduser is the powershell command to build a new user.
you can use a csv file for input, so you should also read up on import-csv
or just a simple google search...
as always, don't run someone else's code if you don't understand what its doing
December 5, 2018 at 3:33 pm #128271ParticipantPoints: 316Rank: Contributor
Here's a very basic example:
name,path js,"OU=People,DC=powershell,DC=org" js2,"OU=People,DC=powershell,DC=org"
import-csv users.csv | new-aduser -whatif What if: Performing the operation "New" on target "CN=js,OU=People,DC=powershell,DC=org". What if: Performing the operation "New" on target "CN=js2,OU=People,DC=powershell,DC=org".
You must be logged in to reply to this topic.