PowerShell Logo Small


This is the built-in help made by Microsoft for the command 'Export-VM', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.


Exports a virtual machine to disk.


Export-VM [-Name] <String[]> [-Path] <String> [-AsJob] [-ComputerName <String[]>] [-Passthru] [<CommonParameters>]
Export-VM [-VM] <VirtualMachine[]> [-Path] <String> [-AsJob] [-Passthru] [<CommonParameters>]

Search powershellhelp.space


The Export-VM cmdlet exports a virtual machine to disk. This cmdlet creates a folder at a specified location having three subfolders: Snapshots, Virtual Hard Disks, and
Virtual Machines. The Snapshots and Virtual Hard Disks folders contain the snapshots of and virtual hard disks of the specified virtual machine respectively. The Virtual
Machines folder contains the configuration XML of the specified virtual machine.



Online Version: http://go.microsoft.com/fwlink/?LinkID=306842




Example 1

PS C:\>Export-VM –Name Test –Path D:\

Exports virtual machine Test to the root of the D drive.

Example 2

PS C:\>Get-VM | Export-VM –Path D:\

Exports all virtual machines to the root of the D drive. Each virtual machine will be exported to its own folder.