Bulk Create AD Test Users

1..100 | foreach {New-ADUser -Path 'OU=test,OU=users,DC=ohio,DC=edu' -Name "SomeTestUser$_" -DisplayName "Some Test User $_" -Description 'Some test user created 2016-04-13' -AccountPassword (ConvertTo-SecureString "somePassword" -AsPlainText -Force) -UserPrincipalName "SoemTestUser$_@ohio.edu" -SamAccountName "SomeTestUser$_" -Enabled $true}

Comments