Having fun while learning about and pivoting into the world of DFIR.
by ogmini
I’ve had a few free moments to test out MSLab and it seems very promising. By just downloading the scripts, two ISOs, and modifying 2 lines in a configuration script I was able to spin up a virtual network with a Server 2025 Domain Controller and two Windows 11 client machines that are already joined to the domain. When I’m done with the lab, I can just run the cleanup script and it removes all the VMs from Hyper-V. Redeploying the exact same lab again just requires running the deploy script with the appropriate configuration.
I’m still exploring how the client machines can be pre-configured or have software installed on them during deployment. MSLab leverages the unattend.xml file for a lot of heavy lifting. This might be a possible avenue for running various commands. https://learn.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-deployment-runsynchronous
Another option might be to leverage Ansible after the VMs have been created to finish configuration.