Creating Dummy Test Users

Written by on Thursday, June 26, 2008 7:32 - 0 Comments

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 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

Leave a Reply

You must be logged in to post a comment.

2003 server - Sep 30, 2008 22:34 - 0 Comments

instant messaging srv records

More In Computers & PC

Microsoft Outlook - Mar 22, 2009 11:22 - 0 Comments

Outlook: Duplicates in Mailbox

More In Computers & PC