LabCreate a Lab environment

Currently I am creating and deleting AD pretty often, because I am trying out stuff in my Lab environment. Too reproduce the same enviroment I created the same OU's, users and groups everytime, by hand. This post is about how I create a lab environment.

So I created a powershell script to create the Lab environment Also created a powershell script to delete the entire environment from an existing AD and leave the rest intact, just if you need a "Lab environment" in an existing AD and want to delete afterwards.

The zip file containing the both powershell scripts are located in the download section of this site or attached to this post. All you have to do is edit the variable $BaseDN to represent your Active Directory domain.