APT-Lab-Terraform
APT-Lab-Terraform copied to clipboard
LabBuilder.py: "C:\LABS" and contents missing on DC01 after install
I have completed the installation of my lab environment using LabBuilder.py.
However, the path C:\Labs is missing on host dc01.labs.local. Ditto for the file share that it's supposed to serve, based on instructions in lab L250 and onwards.
There were no errors during installation. The LabBuilder.py script completed without warnings or failures.
This may be resolved by adding the following two lines to "master/modules/active-directory/5-setup.tf".
mkdir C:\LABS
New-SmbShare -Name "LABS" -Path "C:\LABS" -FullAccess "labs\itadmin"
This change/suggestion is not addressed in pull req #9
Also lacking are the "labs.zip" and the "scripts" subdir which are supposed to be in there. Now, labs.zip I can re-create, but what is supposed to go into the "scripts" subdir?
Because these files are missing, the user accounts for the hunting exercises are also not created automatically. I am left with half a lab.
I've resolved this by running:
cd C:\Labs
iwr -URI https://github.com/DefensiveOrigins/APT-Lab-Terraform/raw/master/labs.zip -Outfile labs.zip
Expand-Archive labs.zip
From there on out I manually edited/ran the "ad-users-create-script.ps1" file with Powershell ISE. But yeah, it'd be neater if we provisioned the file onto the host and included it into the Terraform setup.