I want to automate the process of creating and installing a VM on a hyper-V server. I'm still learning powershell so it has taken me a while to get to this point and I did end up copying someone elses script for the prompting of the values as I couldnt get it working right. I have created the script to create the VM: So I have copied the server 2012 r2 ISO to the D drive of the hyper-v server and created an unattend.xml but not sure how to script that side of it to test it works. Any help? Edit: I found this https://gallery.technet.microsoft.com/scriptcenter/Convert-WindowsImageps1-0fe23a8f It created a VHDX file from an ISO, testing it with my unattend file to see if it works.