Prepare VM: Create VM programmatically, Hyper-V API, C# version

Create VM (Hyper-V) via code – .NET version Create VM programmatically [Sergei Meleshchuk. http://blogs.msdn.com/sergeim/]  From code, you can create many VMs per second. Those will be “bare-metal” VMs of course – you still will need to load image or just install OS on them. My example does not work on remote hosts, but you can…