6 thoughts on “Creating Random Demo Users in Active Directory using PowerShell

  1. Robert Durkin (@telnet25net)

    This is a handly little script. I think I’ll use this in my lab. Thanks for sharing Ryan.

    I am wondering a couple of things. Is there a maximum number of users this can create? What happens if there is a duplicate first and last name combination from the Get-Random?

    • Ryan Dennis

      Thanks Bob!
      Currently I’ve got no logic or error-handling in place to limit the number of users, and I’m also just ignoring any errors which could occur from trying to create duplicate entries.

      I’m actually working on that, and once I get it right I will probably update this post.


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s