Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Creating the users is straightforward, but you also have to remember the order of operations for this. Create the OU first, and then add the users. Also key to the success of this exercise is making sure you enable the recycle bin before deleting your users. Here is one example of the PowerShell commands you could run to perform the exercise. For this exercise, I used a Windows Server 2008 R2 native forest; you would replace the deploy.com with the domain you are working with:
New-ADOrganizationalUnit –Name “Test” –Path “DC=deploy,DC=com”
New-ADuser chrissmith -GivenName “Smith” - Surname
“Chris” -Displayname “Chris Smith” -Path
‘OU=test,DC=deploy,DC=com’ New-ADuser sarahsmith -GivenName “Smith” - Surname
“Sarah” -Displayname “Sarah Smith” -Path
‘OU=test,DC=deploy,DC=com’ New-ADuser kevinsmith -GivenName “Smith” - Surname
“Kevin” -Displayname “Kevin Smith” -Path
‘OU=test,DC=deploy,DC=com’ New-ADuser debsmith -GivenName “Smith” - Surname
“Deb” -Displayname “Deb Smith” -Path
‘OU=test,DC=deploy,DC=com’ New-ADuser caitlinsmith -GivenName “Smith” - Surname
“Caitlin” -Displayname “Caitlin Smith” -Path
‘OU=test,DC=deploy,DC=com’ New-ADuser mitchellsmith -GivenName “Smith” - Surname
“Mitchell” -Displayname “Mitchell Smith” -Path
‘OU=test,DC=deploy,DC=com’ New-ADuser nicolesmith -GivenName “Smith” - Surname
“Nicole” -Displayname “Nicole Smith” -Path
‘OU=test,DC=deploy,DC=com’ New-ADuser mattsmith -GivenName “Smith” - Surname
“Matt” -Displayname “Matt Smith” -Path
‘OU=test,DC=deploy,DC=com’ New-ADuser billsmith -GivenName “Smith” - Surname
“Bill” -Displayname “Bill Smith” -Path
‘OU=test,DC=deploy,DC=com’