VMware Cloud Community
MariusRoma
Expert
Expert
Jump to solution

Creating scheduled tasks

Is it possible to create a script to create a scheduled task?

I need to create a script to create a scheduled task to migrate a VM to a given datastore at a given time.

I don't want to migtrate the VM, I want to create a scheduled task to migrate it.

If it's possible, isd there any sample I can start from?

Regards

marius

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

When scheduling PowerCLI script, there are a few intricaties.

Alan describes them in his Running a PowerCLI Scheduled task post.

For a svMotion you can also use the builtin schduler from vCenter.

Have a look at my Scheduled Tasks – MethodAction post.


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

View solution in original post

2 Replies
jpsider
Expert
Expert
Jump to solution

LucD
Leadership
Leadership
Jump to solution

When scheduling PowerCLI script, there are a few intricaties.

Alan describes them in his Running a PowerCLI Scheduled task post.

For a svMotion you can also use the builtin schduler from vCenter.

Have a look at my Scheduled Tasks – MethodAction post.


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