How to Export a Hyper-V Virtual Machine in Windows
In this article
To export a Hyper-V virtual machine in Windows, open Hyper-V Manager, right-click the VM and choose Export, then pick a destination folder and wait for the export to finish. This creates a complete copy of the VM's configuration, virtual hard disks, and snapshots that you can move to another host or archive. You need administrative rights on the Hyper-V host and enough free disk space for the exported files. The steps below are for Windows 10 and 11 Pro, Enterprise, and Education, and for Windows Server; menu labels can differ slightly by version and edition.
What You'll Need
- A Windows PC or server with the Hyper-V role enabled and administrative access.
- The Hyper-V Manager console (installed with the Hyper-V role).
- Free disk space at least equal to the size of the VM's virtual hard disks plus its snapshots.
- The VM should be shut down or in a state you are comfortable exporting; exporting a running VM is possible but produces a crash-consistent copy.
Step-by-Step
- Sign in to the Hyper-V host with an account that is a member of the local Administrators group or the Hyper-V Administrators group.
- Open Hyper-V Manager from the Start menu or by running
virtmgmt.msc. - In the left pane, select the Hyper-V host that runs the VM.
- In the center pane, locate the virtual machine you want to export. If it is running, consider shutting it down first (right-click > Shut Down) so the export is consistent.
- Right-click the VM and choose Export.
- In the Export Virtual Machine dialog, specify a destination folder. Use a path on a drive with enough free space; the export creates a subfolder named after the VM.
- Click Export to start. A progress bar appears in the status column; the time depends on VM size and disk speed.
- When the status shows Completed, open the destination folder. You will see a
Virtual Machinesfolder, aVirtual Hard Disksfolder, and possibly aSnapshotsfolder. - To use the export on another host, copy the entire export folder to that host, then use Hyper-V Manager's Import Virtual Machine action and point it to the folder containing the
.vmcxfile (typically insideVirtual Machines).
Common Mistakes
- Exporting to a drive that lacks free space; the export fails partway and leaves a partial folder.
- Exporting a running VM and expecting an application-consistent backup. For critical workloads, shut down the VM or use a backup tool that integrates with Hyper-V.
- Copying only the
.vhd/.vhdxfiles instead of the whole export folder, which loses configuration and snapshot data. - Importing the VM on the same host without choosing the correct import type, which can duplicate IDs or overwrite existing files.
- Forgetting that exported files inherit permissions from the destination folder; check access if another administrator needs to import them.
Tips
- Export to a local drive first, then copy to network storage, to avoid timeouts over slow links.
- Name the destination folder with the VM name and a date so multiple exports do not collide.
- If the VM uses differencing disks or checkpoints, export includes them; plan for the extra space.
- Use PowerShell for repeatable exports:
Export-VM -Name "VMName" -Path "D:\Exports". - After a successful import, start the VM and check network adapter settings, since virtual switch names may differ on the new host.
Troubleshooting
If the export fails with an access denied error, confirm you are running Hyper-V Manager as an administrator and that the destination folder grants write access to your account. If the export stops with insufficient disk space, free space or choose another drive; the partial export folder can be deleted. If the VM is in a saved state or has pending checkpoints, the export may take longer or warn about consistency; shut down the VM and retry. If Hyper-V Manager does not list the VM, refresh the console or check that the Hyper-V Virtual Machine Management service is running. When importing on another host, if the import wizard reports a missing file, point it to the folder that contains the .vmcx file, not the top-level export folder. If the imported VM fails to start because of a missing virtual switch, recreate a switch with the same name or edit the VM's network adapter to use an existing switch.
Frequently Asked Questions
Can I export a running Hyper-V VM?
Yes, Hyper-V allows exporting a running VM, but the resulting copy is crash-consistent rather than application-consistent. For important workloads, shut down the VM first or use a backup solution that supports Hyper-V.
What files does a Hyper-V export contain?
The export folder includes a Virtual Machines folder with configuration files, a Virtual Hard Disks folder with the .vhd or .vhdx files, and a Snapshots folder if checkpoints exist.
How do I move the exported VM to another computer?
Copy the entire export folder to the destination host, then in Hyper-V Manager choose Import Virtual Machine and select the folder containing the .vmcx file. Choose the import type that matches your goal (register in place, restore, or copy).
Does exporting a VM remove it from the original host?
No. Export creates a copy; the original VM remains registered and unchanged on the source host.
Can I export a VM with PowerShell?
Yes. Run Export-VM -Name "VMName" -Path "D:\Exports" in an elevated PowerShell window on the Hyper-V host.
Why is my export taking so long?
Export time depends on the total size of the virtual disks and checkpoints, disk speed, and whether the VM is running. Large fixed-size disks and slow storage increase the time.