Exit code 0 - Shows failed

Hi Guys,

Kindly help why script fails as exit code 0 but its working.

Is this a Fixlet, a Task, or a Custom Action?

A Fixlet will show as Successful if the relevance on the fixlet changes to ‘False’ after the action runs. If the Relevance is incorrect, and not detecting that Sysmon was properly installed, you could have this case where the action ran as you expected, and returned a 0 exit code, but the Relevance still evaluates to True so BigFix tags it as a failed action.

I’ve created a brand new fixlet so i am going to run it after this post.

What am I doing wrong?

attached log - but still show in console exit code 0 - failed.

what is the correct way to do it for fixlet to work.

Fixlet that will copy from cache location to local folder on user machine and then execute powershell script.

What’s in the Relevance tab of the fixlet?

Ok, so usually instead of just “true” the relevance should be crafted to detect some condition, like, sysmon is not installed. Then running the installer makes that relevance evaluate to False, when sysmon is installed, so the system is “fixed”.

Either change this to a Task, or set a custom Success Criteria on the Actions tab and change it to “all lines of the script execute successfully”.

Hi Jason,

Much appreciated. it worked thanks.

1 Like

Happy to help, and welcome to BigFix!