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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store