3. Type the command below into PowerShell and press Enter (see screenshot below).
Export-VM -Name 'Name of virtual machine' -Path 'Full path of directory to export to'
Attention:
Replace the virtual machine name in the above command with the name of the virtual machine from step 2 above.
Replace the full path of the directory to export to the above command with the full path of the directory in which you want to export the virtual machine.
For example:
Export-VM -Name 'w10 build 14379' - Path 'D: My Virtual Machines'
4. Virtual machine will be exported.This action may take a while to complete (see screenshot below).
5. When done, you can close PowerShell if you want.
See more: