I've been working alot with the Ivanti PowerShell API and one of the things I just can't get to work is stopping a deployment using the call Stop-PatchDeploy.
Stop-PatchDeploy -Uid XXXX
It just does nothing. Is there any restrictions on this? i.e can you only stop a deployment if it's in a certain state? I can Cancel the deployment via the GUI at any point?
Hope someone can help.
The actual code is:
$deploymentID = $deploy | Select-Object -ExpandProperty Uid | Select-Object -ExpandProperty Guid
Stop-PatchDeploy -Uid $deploymentID
Retrieving data ...