Simple action reports failed but the action is performed

(imported topic written by okole91)

The actions below report as failed every time but when I check the perms on the dirs they have been changed. Why does the action report as failed?

runhidden cmd.exe /C cacls.exe %SYSTEMDRIVE%\IQ /E /G USERS:C /C

runhidden cmd.exe /C cacls.exe “%ALLUSERSPROFILE%\Application Data\IQ” /E /G USERS:C /C"

(imported comment written by BenKus)

Hey okole,

Is it a Fixlet or a Task? What is the relevance?

This might help:

http://support.bigfix.com/cgi-bin/kbdirect.pl?id=68

Ben

(imported comment written by okole91)

I haven’t built any relevance around it yet. I did build it as a fixlet, maybe that’s my problem?

(imported comment written by okole91)

oh i get it…if the relevance on a fixlet is always true the action will always fail whether it successfully runs or not.

(imported comment written by jessewk)

That’s correct. Success/Failure is determined by the action’s ‘success criteria.’ You can verify the success criteria in the Take Action Dialog and also in the Action Document. The default behavior for a Fixlet is to check that the relevance has become false. The default behavior for Task is simply that all lines executed successfully. You can also chose to define custom success criteria, which is useful for things like checking an installation exit code in a log file.

Jesse