What return codes does Automox use for success and failure when running a policy? 

Answer

For patch policies

  • Automox returns a "1" for a failed policy run.
  • Automox returns a "0" for a successful policy run. 
  • Other codes can be seen from the activity log, such as:
    • 124, 1609, 1848, just to name a few.
  • These error codes come directly from the package and not from Automox. However, Support is more than willing to help get these errors figured out. 

For Worklet and required software policies

  • Automox returns a "1" for a failed policy run.
  • Automox returns a "0" for a successful policy run.
  • Worklets and required software policies can be scripted to contain an exit code. Automox recommends using an "if" statement and including both exit 1 for fail and exit 0 for success.
  • The only exception for Automox returning a "0" and the policy fails would be because the remediation code has an exit as a non-0 number.
Was this article helpful?
0 out of 0 found this helpful