Exports virtual machine Test to the root of the D drive.
PS C:\> Export-VM –Name Test –Path D:\
Exports all virtual machines to the root of the D drive. Each virtual machine will be exported to its own folder.
PS C:\> Get-VM | Export-VM –Path D:\
Adding -Asjob option in the end of line will run the above command in background releasing the prompt free.
PS C:\> Export-VM –Name Test –Path D:\ -Asjob