Creating Bulk Users and Groups in AD via Powershell

I often get tasked with finding out where some of the limits of our products might be and one of them that has come up is the ability to work with larger Active Directory configurations.  Running a lab I obviously don’t have thousands of users so I wanted a way to quickly create and remove users and groups.  In comes the powershell scripts that I have below.  I created this is multiple parts but have since made each part a function and put a nice menu around it.  The final BulkAdd.ps1 is the total script that you are free to download and use for your environment.  You can follow the flow in the diagram below.

You can get the full script Bulk-Menu_v2 but I will list all the parts below. All of the scripts start the same way and I have some centralized variables at the top of the main script.

You can see the script in action

 100 Groups and 200 Users Created and Removed in 2 Min Continue reading “Creating Bulk Users and Groups in AD via Powershell”