Posts Tagged ‘Creating Dummy Test Users’
2003 server - Thursday, June 26, 2008 7:32 - 0 Comments
Creating Dummy Test Users
How to create a bunch of dummy or test users quickly in Active Directory.
Occasionally when testing a prototype Active Directory environment, you may need to create a large number of dummy domain users for testing purposes. You could go through the pain of creating a CSV file and using LDIFDE to create them, but here’s a much easier way. Simply use the FOR command together with DSADD to create users named user1, user2, user3 and so on. For example, to create 100 dummy users in the Vancouver OU of the yourdomain.com domain, run the following at a command prompt on your domain controller:
for /L %d in (1,1,100) do dsadd user cn=user%d,ou=Vancouver,dc=yourdomain,dc=com
Alternatively, you can replace % with %% and run the command within a batch file:
for /L %%d in (1,1,100) do dsadd user cn=user%%d,ou=Vancouver,dc=yourdomain,dc=com
Article written by MyComputerAid.com