This script will auto-generate the required users, groups, and permissions necessary for my upcoming domain pivoting course. THIS IS FOR A TO BE COMPLETED COURSE AND I WILL NOT BE PROVIDING ANYONE SUPPORT AT THIS POINT. PLEASE STOP ASKING.
In order to generate a functional domain controller and active directory, the listed PowerShell scripts need to be executed in the following order:
Invoke-ForestDeploy -DomainName <domain name>
This will install the Windows Active Directory Domain Services toolset and generate the actual domain. Follow the instructions on screen, making note of the domain name used as this will be needed later.
This will generate the appropriate users, groups, permissions, configurations, and misconfigurations needed for the actual course.
For the nitpickers, yes, some of this code was inspired by other resources. It's literally how coding works.