For the purposes of both testing and the creation of a captured image, the solution makes use of Hyper-V. This was chosen because of a) simplicity in controlling via PowerShell and b) the ability to mount VHDX drive images as writable drives in the local OS. Plus, no license or other random software to obtain and maintain.

Install Hyper-V using Programs and Features in the Control Panel. If necessary, enable virtualization support in BIOS first.

Once installed, launch the Hyper-V console as a local administrator so we can provide the initial configuration:

  1. Right-click your computer name in the tree on the left and select Virtual Switch Manager.
  2. Highlight New virtual network switch on the left.
  3. Click on External on the right.
  4. Click on Create Virtual Switch.
  5. Specify a name of External. Specify that the virtual switch should connect to the External network. Select your wired or wireless network adapter (whichever will be connected continuously). Be sure to check the Allow management operating system to share this network adapter checkbox. Click Apply.
  6. When prompted to confirm the changes, click Yes.
  7. Close the Virtual Switch Manager.

We'll be creating a virtual machine to use for testing purposes in a later step. If you are, instead, moving the solution to a new system and need to import the existing VM, see this page.