VMware Cloud Community
MikeErter
Enthusiast
Enthusiast

Move-VM cmdlet

Hi PowerCLI community,

I read in a list of VMs from a file and used Move-VM to svMotion them to a different Datastore.

I noticed they moved serially, one at a time. 

Is there a better way to storage vMotion VMs via PowerCLI that will move them in parallel?

Thanks

Tags (2)
0 Kudos
1 Reply
MikeErter
Enthusiast
Enthusiast

Just answered my own question. From the output of help About_RunAsync:

To make sure that tasks initiated by a cmdlet do not run in parallel, run the cmdlet in a lo
op, each time applying it to a single object.
0 Kudos