It is the powershell script that will automatically create AD users. What makes it unique is that all the necessary OUs (even nested OUs) are created in advance before users creation. So, you won’t need a separate script for both tasks. Here, I give the screenshot of my testing domain, with example users defined in my csv file.
You must include these properties as the csv file headers (See Fig-2). But leave the values blank if some users do not have these properties.
EmployeeID, DisplayName, OU, Description, Name, GivenName, SurName, SamAccountName, Title, Departement, Domain, Office, OfficePhone, Company, EmailAddress, Password
It takes only 3 min to create 1500 users for me, Cheers!
Figure-2: My sample csv file.
The following fields are invalid or blank in your csv columns. Please Check and correct.
ReplyDeletecan you describe why this error happen
Hi,
DeleteYou need to put all headers as shown in my script. But you can leave blank if the users are not using a particular value.