Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 50
  • Last Modified:

I need to add about 300 users to AD. What would be the easiest and quickest way to do this.

All of the users have the same security groups. I need to add first,middle, last name;ID;state Number;Grade;Homeroom;Gender;Birth date and ethnicity for each user. Also an email address for each user is necessary with first initial and last name. AD is linked to google so it will create the account once email address is inserted in AD. Students vary from grades 9-12 so we would need to split them up into 4 different folders in active directory.
0
NOC123
Asked:
NOC123
4 Solutions
 
Scott CSenior Systems EnginerCommented:
User PowerShell

See Example #4.

http://www.windowsnetworking.com/articles-tutorials/windows-server-2012/creating-active-directory-accounts-using-powershell.html

A good example of how you can use Windows PowerShell to automate a common Active Directory management task is the bulk creation of users.
0
 
Cliff GaliherCommented:
If you have this list in a digital format already (such as a .csv file) then a Powershell script would be the fastest way to do that.  Since each file can be different and you may have unique criteria, you'll probably want to hand-code one, but it'd realistically only be a few lines and a for loop. 10 minutes of coding, with debugging, under normal circumstances and requirements.
0
 
Scott CSenior Systems EnginerCommented:
Do you have your new users in a text file?
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
Dustin SaundersDirector of OperationsCommented:
Pop up a sample of your CSV structure and I'll code it out for you.
0
 
Adam BrownSr Solutions ArchitectCommented:
Some of the attributes you have (Homeroom, Grade, Age, Gender, and Ethnicity) don't have a good spot in AD to go by default. You can extend the AD schema to add those attributes ( Http://www.showmehowtodoit.com/create-custom-active-directory-attributes-for-user-properties/ has instructions), just be aware that modifying the schema is a potentially dangerous (and extremely confusing) proposition that few, if any, people are willing to undertake.

You could potentially add those values in existing AD attributes like the Notes field, but that will confuse people and if you use the Notes field for all of that info, you won't be able to easily search for student info based on grade, homeroom, age, or whatever.

If you do extend the schema, those values will only be visible in the Attributes Tab of their Account Properties by default, but you can change what AD Users and Computers shows so that info is displayed when browsing the directory ( https://blogs.technet.microsoft.com/undocumentedfeatures/2016/01/19/extending-active-directory-users-and-computers-with-custom-attributes/ )

As to how to get all that data added, Powershell is probably the easiest way. If you have the data in a CSV file, let us know what the headings are for each line, where you want the data to go in AD, and someone will be able to build a quick script to get it put in for you. Note, the headings should have no spaces or special characters.
0
 
Matthias RudolphCommented:
Hi,

Use the PowerShell cmdlet New-ADUser

Here's a step-by-step beginners tutorial including the .csv way

http://activedirectoryfaq.com/2016/04/ad-powershell-basics-new-aduser/

Regards,
Matthias
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now