I need to write some powercli to see if a VM is being snapped, vmotioned or possibly other operation. How can I check if a task is running on the specified VM in vCenter?
I know how to get the running tasks in vCenter:
| | $task = Get-Task -Status Running |
But how do I determine what the target is of the tasks?