Back to home

Build an Atomic Windows Lab

I have decided to build a Windows virtual machine to run some test scenarios with the goal to automate the repetitive tasks we encounter during an engagement.

In the nutshell we are going to build a vulnerable Non-Domain Windows machine with different escalation paths including weak configuration service and Always Install Elevated enabled with some defenses on such as Windows Defender (LOL) and Powershell restricted language to make a bit challenging, or should I say interesting.

In order to facilitate the construction and deconstruction of the environment, I have wrote the following tiny Powershell script.

Note that admin rights are required obviously, also once we have executed Install-Environment(), we cannot use the script in a new created Powershell session due to the Restricted Language mode. However, we can still leverage InstallUtils and Powershell Runspace among other things to execute the script.



Please feel free to ping me on X @tahadraidia.