Skip to main content
Question

Continue policy despite errors

  • February 16, 2016
  • 1 reply
  • 0 views

Forum|alt.badge.img+8

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

mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • February 16, 2016

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