Client Management Suite

 View Only

Can I set additional success codes for script tasks?

  • 1.  Can I set additional success codes for script tasks?

    Posted Feb 17, 2017 11:59 AM

    I have some script tasks that I am using in jobs and using branching so if return code is 0 it does one thing but if 10 it does something else or it goes to a failure if something else. 

    Everything works fine but anything other then 0 is seen as failure when its really not but more of a decision tree, for example 

    script runs to check OS, if OS = win7 then run job 1 if os = win10 run second job, if OS not detected as either then error and stop.

    Its more to prevent my lower level techs from saying a job is failing because they are seeing red then anyhting.