How to: Create users for testing purposes

If you want to create a large amount of test user accounts in your domain, you can use the following command to quickly add all the user accounts! This will save you a lot of time…. 😉

FOR /L %i in (1,1,100) DO dsadd user “cn=User%i,ou=Gebruikers,dc=exchange,dc=local” -samid User%i -upn User%i@Exchange.local -fn User%i -display User%i -pwd P@sswOrd -disabled no

Leave a Reply