In this section, I will use Powershell script to automaticallly create users and groups in the homelab domain. These users will have weak password credential and will be join in 1 or multiple groups in the domain
I will have one script file named gen_ad.ps1 and one database of users in a JSON file named output.json. You can check these cript in my Github link
Now, on the Manager Client, after cloning my code from GitHub, we will copy gen_ad.ps1 and output.json to the DC1 machine. We will use the following command lines: