Definition: Active Directory Domain Services provide secure, structured, hierarchical data storage for objects in a network such as users, computers, printers, and services. Active Directory Domain Services provide support for locating and working with these objects (https://msdn.microsoft.com/en-us/library/aa362244(v=vs.85).aspx).
User accounts are computer accounts that allow people to log into Active Directory to obtain resources and access authorized information.
Location: Main Domain Controller Server
Operation: You will be using PowerShell script to upload the 100 users by way of a CSV file into Active Directory. User accounts will be enabled. The CSV file will assign users a Home Directory and Roaming Profile (Home Directory and Roaming Profiles should be configured before this process).
Recommendations:
It might be wise to download Open Office or Excel so that you have the ability to quickly edit CSV file in a spreadsheet.
In the testing environment, you should save the file to your server's desktop for ease of locating it.
Here are some screen shots of the user CSV file that I created. You can generate a +100 users for this exercise at https://www.mockaroo.com/ (fantastic fake name generator).
Open PowerShell, which is located in the bottom left hand corner of the desktop of Windows Server 2012.

You will copy and paste this into PowerShell's command line.
Note: Delete the Bold text for copy and paste function into Powershell
PS C:\Users\philipcurtis> Import-CSV .\Desktop\users2.csv | foreach {New-ADUser -Name $_.Name -SamAccountName $_.SamAccountName -GivenName $_.GivenName -Surname $_.Surname -UserPrincipalName $_.userPrincipalName -HomeDrive $_.HomeDrive -HomeDirectory $_.HomeDirectory -ProfilePath $_.ProfilePath -Path $_.Path -AccountPassword (ConvertTo-SecureString -AsPlainText $_.AccountPassword -Force) -Enabled $true -ChangePasswordAtLogon 1}
(Minasi 455-456)
PowerShell Troubleshooting:
You should look at the CSV's path to make sure that it is correct.
Make sure there is no hidden characters and space (copying and pasting could cause issues).
Also, you will need to set up the OU's first before adding the users.
Any other issues, you might want to right click on PowerShell and run as Admin.
Cite: Numerous sources were used to complete this process. The main citing source is Mastering Windows Server 2012 R2 Book by Christian Booth, John McCabe, Kevin Greene, Mark Minasi, Michael Rice, Robert Butler, Robert Panek, and Stefan Roth. Mastering Windows Server 2012 R2 book is an excellent resource that is well worth the price.
(Minasi 455-456))





























