This HOWTO covers how use the free 180 trial version of Windows Server 2012 R2 to build a reusable template for lab and development purposes.
The objective of the steps below are as follows:
- Ensure that whenever we need to deploy a new Windows Server for testing, it will always have the latest updates and customizations
- Each deployment will be sysprepped ensuring there are no SID conflicts when using multiple machines
- Allow for the latest updates and new customizations to be be added in the future without impacting already deployed test machines
- New Server 2012 R2 VMs including fresh domain controllers and domain joined member servers must be spun up as quickly as possible with as little user intervention as possible
- The process must allow for an unlimited number of Syspreps to take place
- This entire guide must be repeated every 6 months as we are using the free trial version of Windows Server 2012 R2
- Any machines deployed during the 6 month trial period will reset and start from their own 180 day counter independent of the source
- The implement will leverage the linked clone snapshot feature found in VMware Workstation
Overview
The idea behind this build is to provide the fastest possible way to build new Windows 2012 R2 Active Directory lab environments.
I’m aware there are other solutions available but I wanted to see what I could accomplish using nothing more than the 180 day trial ISO, VMware Workstation and PowerShell.
The configuration may seem a little complex but once these steps are in place, it becomes hilariously easy and fast to deploy new test servers at home for testing.
The idea is to build out a new VM using the trial, snapshot it, sysprep it and then use PowerShell scripts to automatically build new Domain controllers and join to the domain using Desired State Configuration.