Keith Combs' Blahg

Ramblings from another nerd on the grid

Filling up Active Directory (AD) with some test data

Filling up Active Directory (AD) with some test data

  • Comments 2
  • Likes

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 @

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • 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.

  • 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