Continue policy despite errors

drioux
Contributor

Does anyone know of a way to force a Policy to continue to run when it encounters an error (such as a script that can not find the elements it's trying to remove) so that the remaining items are completed anyway?

1 REPLY 1

mm2270
Legendary Contributor III

I believe this would depend on putting the correct error trapping in your script and not something done directly in the policy. To my knowledge, the remainder of a policy will continue to run even if the script fails for some reason, although it will note a failure in the final log. This is actually the default behavior with policies that many of would like to see some better control over. See this FR for example: https://jamfnation.jamfsoftware.com/featureRequest.html?id=377