I wondered if there is an option to cancel a Recompose task from PowerCLI.
I have a Powershell script that do some things, and I want to do a check in my script - If there is a Recompose task for a specific VM, cancel it and then do some operations.
Is it possible or only from the Admin console?
You can use powercli to perform view composer task as below:
Get-Pool -Pool_id TestLC1 | Get-DesktopVM | Send-LinkedCloneRecompose -ParentVMPath /Horizon/vm/Master/Win10gold -ParentSnapshotPath /0222/0225 -schedule '2020-07-28 18:00'
You can refer below docs: