Filling up Active Directory (AD) with some test data

I don't recall if I've ever posted a little batch file I use to populate Active Directory (AD) with some test data.  Kevin asked me for it earlier this morning so I thought it might be of benefit to the rest of you for your test labs, VMs, etc.  Here's the code from the batch file.  Be sure to rename the extension to run it as a batch file.  Duh. Grin.

Get it @

Comments (2)

  1. Rob says:

    In case you really want to test AD, I wrote a small C# command line app to generate random names using the top 1000 first name (male and female) and top 1000 last names according to the last census.  It can gen as many as you have hard drive space for.

  2. Matt Simmons says:

    Wow, nice job saving people a lot of time.

    It wouldn’t be too hard to generate a script to remove the same users and OUs, but what are the commands to do it? I’ve only very recently gotten into Windows admin stuff, so I’m woefully ignorant on the subject

Skip to main content