VMware Cloud Community
NagaSGiddaluru
Enthusiast
Enthusiast
Jump to solution

How to use Stop-Task PowerCLI command to stop a existing running task in vCenter

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.

1 Solution

Accepted Solutions
SupreetK
Commander
Commander
Jump to solution

This should get you going - User Can't Cancel a task | Technodrone

Cheers,

Supreet

View solution in original post

3 Replies
SupreetK
Commander
Commander
Jump to solution

This should get you going - User Can't Cancel a task | Technodrone

Cheers,

Supreet

NagaSGiddaluru
Enthusiast
Enthusiast
Jump to solution

You Rock Supreet. Pointed me to the right path.

I was keep checking with the default syntax to use  "Stop-Task -Task $task" 

LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos