How to clone a virtual machine in Hyper-V step by step and in detail

Last update: 09/04/2025
Author Isaac
  • Hyper-V allows cloning Virtual machines through various methods, including Admin Center, PowerShell and SCVMM.
  • Using VM templates and the Sysprep utility is key to performing clean and efficient clones.
  • Export/import is the most commonly used mechanism for duplicating virtual machines without errors.
  • There are third-party tools like Vinchin and NAKIVO that offer advanced cloning solutions, backup and restoration.

clone Hyper-V virtual machine

Cloning a virtual machine is one of the most useful and common tasks in the virtualized server and lab administration environment. In the case of Hyper-V, there are multiple ways to do this, depending on the level of sophistication you need, the objectives (testing, production, backups, etc.), and the tools available.

In this article, I'll explain all the methods available for cloning a VM in Hyper-V, from the simplest with Hyper-V Manager to advanced options with PowerShell and System Center Virtual Machine Manager (SCVMM), as well as automatic backup solutions. Plus, I'll give you tips to avoid common mistakes and ensure all your network, security, and performance settings remain consistent.

Why should you clone a virtual machine?

Cloning virtual machines saves you a lot of time and effort when you need to deploy similar environments or perform testing without affecting your production environment. It's also useful for backing up data before performing critical updates, experimenting with new configurations or applications, or preparing development environments.

Instead of creating a VM from scratch and configuring everything manually, when you clone a VM you get an exact copy, with the operating system, drivers, apps and settings ready to go. To learn more about cloning virtual machines to other environments, check out this article on Clone a virtual machine in VMware.

However, some details such as the IP address, hostname, and security identifier (SID) need to be taken into account, as these can cause conflicts if not properly prepared before cloning.

Clone a VM from Hyper-V Manager using Export/Import

One of the most accessible methods for cloning a VM is to use the export and import features offered by Hyper-V Manager. This way, you can get an identical copy of the VM that you can take to another host or keep on the same computer if you need it for testing.

  How to format USB drives in Windows 10/11

Steps to export a VM

  1. Open Hyper-V Manager and locate the virtual machine you want to clone.
  2. Right-click on the VM and select “Export.”
  3. Choose a path where all exported files will be stored. Make sure you have enough space.
  4. Click “Export” and wait for the process to complete.

The export groups all the necessary elements: virtual hard disks (VHD/VHDX), VM configuration files, and snapshots or checkpoints, if there were.

Steps to import the cloned VM

  1. In Hyper-V Manager, click “Import Virtual Machine” from the actions menu.
  2. Select the folder where you exported the VM.
  3. Choose the option “Copy the virtual machine (create a new unique ID)”. This option generates a new identifier so you can run it alongside the original without conflict.
  4. Define paths for disks, configuration, and resources, or leave the defaults.
  5. Review the summary and click “Finish.”

Once imported, you'll have a new VM ready to customize, rename, re-IP, and boot without interfering with the original.

Pre-preparation: Avoiding conflicts using Sysprep

Before cloning a virtual machine Windows, it is highly recommended to run Sysprep. This small Microsoft utility clears system-specific settings such as SID, time zone, hostname, and other settings that could cause conflicts in a shared network environment.

How to use Sysprep correctly

  1. Access the operating system of the original VM.
  2. Find the folder: C:\Windows\System32\Sysprep\
  3. Run sysprep.exe
  4. Under “System Cleanup Action,” select “Enter First-Run Experience (OOBE).”
  5. Check the “Generalize” option.
  6. Under “Shutdown Options,” select “Shutdown.”

You can also run the following command directly from CMD if you prefer:

sysprep /generalize /oobe /shutdown /mode:vm

This process prepares the VM for cloning and ensures that the operating system will not complain when booting multiple cloned instances from the same database.

Quick cloning using virtual machine templates

If you're going to need to clone the same VM many times, it's best to create a master template. This allows you to replicate virtual machines with identical configurations quickly and with less room for error. These templates can be created after running Sysprep and exporting the clean VM.

  Restoring apps that won't open after changing permissions in Windows

Templates can be stored in shared folders and used from different Hyper-V hosts, either by manual copying or using tools like SCVMM.

Advantages of using templates:

  • They allow for complete standardization of configurations.
  • Reduce network errors or duplicate software thanks to Sysprep.
  • Improve efficiency by deploying massive environments for training, testing, or production.

How to clone a VM from Windows Admin Center

Windows Admin Center is a modern, browser-based tool that lets you manage servers, virtual machines, network settings, and more. It includes a direct option to clone VMs in a fairly intuitive way.

Steps to clone a VM with Windows Admin Center

  1. Install Windows Admin Center on one of your Windows servers or on a local machine.
  2. Access through a Web navigator.
  3. Select the server where the VM is located.
  4. Go to the “Virtual Machines” section.
  5. Right-click the VM you want to clone and select “Manage” → “Clone”.
  6. Enter a new name for the clone and indicate the location where it will be saved.
  7. Click “Clone” and wait for it to complete.

This method is ideal if you want to avoid technical complications and need a fast clone in a controlled environment.

Clone virtual machines from SCVMM (System Center Virtual Machine Manager)

SCVMM is the enterprise management tool for Hyper-V clusters and advanced virtualization environments. Allows you to centrally create and clone, apply network policies, storage and performance, as well as manage resources from a unified console.

How to clone VMs in SCVMM

  1. Open SCVMM and navigate to “Libraries” → “Templates” → “VM Templates”.
  2. Select “Create VM Template.”
  3. Indicate that you want to create it from an existing VM on the host and select the previously cloned VM (after Sysprep).
  4. Complete the steps of the wizard, assigning name, OS profile, hardware, etc.

Once you've created the template, you can deploy as many VMs as you need with the same configuration, across different hosts and private clouds, from the SCVMM dashboard.

It can also be cloned with PowerShell

If you prefer to automate your tasks or integrate processes into scripts, PowerShell allows you to export and import virtual machines with commands simple.

  Completely uninstall GPU drivers with DDU

Basic examples:

Export a VM:

Export-VM -Name "NombreDeLaVM" -Path "C:\Rutas\Exportadas"

Import as copy (new ID):

Import-VM -Path "C:\Rutas\Exportadas\IDdeVM.vmcx" -Copy -GenerateNewId

Import restoring:

Import-VM -Path "C:\Rutas\Exportadas\IDdeVM.vmcx" -Copy -VhdDestinationPath "D:\VMs" -VirtualMachinePath "D:\VMs"

This can also be fully automated in enterprise environments to batch clone or replicate environments with custom scripts.

Advanced Alternatives: Cloning with Backup Tools

Some backup solutions, such as Vinchin Backup & Recovery or NAKIVO, allow you to not only perform backups but also clone entire VMs to other hosts.

With Vinchin, for example:

  • You can select the VM, configure agentless backup, and restore it to any of your Hyper-V servers.
  • The web console is intuitive and allows you to restore from previous backups without conflict.
  • Very useful for disaster recovery or for moving VMs between physical hosts easily.

NAKIVO offers similar features with incremental backups, granular restore, and the ability to boot a VM directly from a backup.

These tools are especially useful in environments where you need to replicate machines to other sites, perform restore testing, or move data between hosts safely.

The options for cloning your virtual machines in Hyper-V are many and varied, from the simplest ones you can perform with a few clicks in Hyper-V Manager, to advanced configurations via PowerShell or SCVMM. Using Sysprep before cloning is a fundamental practice to avoid network and system conflicts. If you manage many machines or need agility when setting up environments, templates and backup solutions with integrated cloning can make a difference in deployment and maintainability times.

clone virtualbox VM
Related article:
How to clone a virtual machine in VirtualBox step by step