VMware Cloud Community
StephenMoll
Expert
Expert

Background Tasks using -RunAsync vs. Start-Job

Am I right in saying that when using the -RunAsync switch there is no option to give the resulting task a specific name?

With Start-Job you can give the task a "friendly" name, I'm guessing with -RunAsync you cannot.

1 Reply
LucD
Leadership
Leadership

That is correct.

But be aware of the difference.
A RunAsync job is a task that returns in the background on your vSphere server.
A Start-Job job runs on your station, and may make calls to the vSphere server of course.


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