VMware Cloud Community
ChocolateThunda
Contributor
Contributor

Using powercli to schedule a storage vmotion to another datastore

Has anyone used PowerCLI to schedule a storage vmotion task to another datastore?  I did this manually in vSphere for several machines and it wasn't fun.  I see where move-vm is used to do this but I don't think the command will allow the svmotion to be scheduled.  Does this require creating a script and using Windows Task Scheduler or can this all be done via PowerCLI/Powershell?  Thanks!

0 Kudos
1 Reply
LucD
Leadership
Leadership

You can use the Task Scheduler (see for example Alan's post called Running a PowerCLI Scheduled task)

But you can also use the vCenter scheduler, see Scheduled Tasks – MethodAction


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

0 Kudos