VMware Cloud Community
TYACC
Contributor
Contributor

How to export a vmdk from the vcenter server using command line?

Hi All,

We are developing a website, our requreiment was to export a particular VM which running under vcenter server and uploaded to a shared folder or local hard disk which hosted in the vcenter server.

i want this task to be done by vmware pcli  using powershell script.

Thanks

Y

0 Kudos
2 Replies
a_p_
Leadership
Leadership

0 Kudos
LucD
Leadership
Leadership

You can use the Copy-DatastoreItem cmdlet to copy files, including the .VMDK file(s), from a Datastore to a local disk.

An alternative is to use the Datastore provider. See the vSphere PowerCLI Administration Guide that comes with the installation of PowerCLI.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference