Export-VM
SafeExport a VM
Export-VM -Name <vm> -Path <dir>
Writes out config, disks and checkpoints — for relocation or cold backups. Restore with Import-VM.
Examples
Export-VM -Name web01 -Path D:\VMExportExport the whole VM
Syntax
Export-VM -Name <vm> -Path <dir>
Before you run it
Export only; watch disk space.
Used when you see
Related commands
- Checkpoint-VMHyper-V checkpoint
- Get-VHD / Optimize-VHDInspect/optimize VHDs
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store