Create Multiple Hyper-V Virtual Machines via PowerShell

Windows Server 2012 Logo

For a demo installations I needed a lot of Virtual Machines so I had to choose between creating all the Virtual Machines via Hyper-V Manager which is not really a great option. The best option in this case would be doing this via Windows PowerShell, and with the new Hyper-V PowerShell module in Windows Server 2012 this is very easy and took me only some minutes to get this quick and dirty script. Because this script is only used for my lab or demo environments there is no error handling included.