Tenuous title link aside, here's a collection of scripts and steps that will help you hydrate a test lab. The scripts are designed to mirror an exiting environment.
Plant Your Forest
If you have the luxury of an Azure subscription take a look at the below forest build script. It will allow you to add member servers and clients, in addition to domain controllers. There's also a link to an Azure Automation Account Runbook to do the same in the Q & A section.
If you don't have an Azure subscription then sign up for a free trial. Not an option? Have a look at this:
Right, once you have your forest it's time to populate it with 'stuff'.
Let it grow, let it grow,
Let it blossom, let it flow...
To Me, To OU
Now, let's create an OU structure. This will ensure our User and Group Policy imports are successful later on.
Here's a script to dump the OU structure from our existing domain:
And, here's a script to mirror that structure to the new forest:
Ah, the plebeian masses! Here's how to dump users:
And, here's how to mirror those users to the test forest:
This script dumps policies, SoM, WMI filters and much, much more:
Consider using the Migration Table option. Here's the sister import script:
And, that's it (for now). Groups and computers are on the to-do list. As is a module and / or a master hydration script.