I try to use the Import-VM but I keep on getting errors or some output without that my virtual machines show up in the UI of Hyper-V R2.
What I want to do is rather simple: Instead of using the UI for IMPORTING virtual machines (which have been exported earlier), I'd like to use Import-VM with an option to create a COPY and DUPLICATE, as the UI allows me to select.
Anyway I am a bit irritated that I need to point to one or multiple VHD files, instead of the config.xml file, as the UI requires.
So I created an array of my .VHD files via $a = "path\vhd1", "path\vhd2"
Is it possible to use Import-VM instead of the UI for importing VMs as copies and duplicates or do I need to look for something else?
Thank you in advance.