I have been using this PowerShell script or GUI for quite some time when I create local Hyper-v virtual machines in my lab, the challenge I had was that the settings I want on my VMs reqiures extra steps in the Hyper-V management console after the VM is created like amount of CPU and default boot DVD.
So I just updated it to work on Windows 10 and is looks as boring like this and the code is not nice and does not include any error handling at all! But it works for me, saves me time and keeps me happy 🙂
To make this script fit your environment and needs modify these rows
$VMPath = “D:\Hyper-V”
$VMBootDVD = “F:\Deploy\Boot\LiteTouchPE_x64.iso”
$VMMemory = 2GB
$VMVHDXSize = 50GB
$VMProcessorCount = 2
$VMGeneration = 2
$VMNet1 = “Internal 2”
$VMNet2 = “Internal 1”
Modify as you’d like and if you have any contributions you would like to share please use the comments below.
Now go download the script