VMware Cloud Community
LiamCurtis
Enthusiast
Enthusiast

Clone VM to different datastore using PowerCLI?

Hello All,

I am running VSphere and have a working script that clones a VM using powercli. I only see where you can specify a foldername, but not a specific datastore. Am I missing something or is it not possible to specify a new datastore uding cloneVM_Task?

I would like to clone vm's to different datastore, if possible.

If not possible using cloneVM_Task, is there another method for moving VM's? I stumbled across moveDatastoreFile_Task, but not sure this is best method and I could not find much info on this.

Thanks much!

Reply
0 Kudos
1 Reply
LiamCurtis
Enthusiast
Enthusiast

Aha!

Some more digging and I found some helpful info on this thread:

http://communities.vmware.com/message/1219320

I am just horrible with Powershell--still learning syntaxes. By using syntax similar to script there I was able to clone to different datastore.

Reply
0 Kudos