Hyper-V WMI: How to clone Virtual Machines using Import/Export?

This post is going to be an end-to-end script to create 10 clones of a given VM. Here’s a quick tour of the script: This script takes 4 parameters: -MasterVM – this is the name of the VM that will be cloned -Path – this is the base path where the clones will reside -NewName – this […]

This post is going to be an end-to-end script to create 10 clones of a given VM. Here’s a quick tour of the script:

This script takes 4 parameters:

-MasterVM – this is the name of the VM that will be cloned 
-Path – this is the base path where the clones will reside 
-NewName – this is what the cloned VM’s will be named 
-HyperVHost – this is the name of the host that the script will execute against

Full Article