Can any one have idea how to use STOP-TASK PowerCLI command to stop an existing Running Tasks in vCenter.
We can get list of existing running tasks in vCenter using Get-Task.
Any help appreciated.
You Rock Supreet. Pointed me to the right path.
I was keep checking with the default syntax to use "Stop-Task -Task $task"
Be aware that this will only work for a Server Side Task (SST).
Some cmdlets, when ran with the RunAsync switch, will become a Client Side Task (CST), and you can't stop them this way.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
