Skip to main content

Does the script exit code: 0 mean that the policy was not applied? And does the script exit code: 1 mean that the policy was applied?

Exit 0 = Script Executed successfully
Exit 1 = Script Executed unsuccessfully (there we're errors or problems)


You may want to look up some guides on bash script exit codes, like here: http://steve-parker.org/sh/exitcodes.shtml
There are others too.



Exit code 0 almost always means it was successful. Anything other than 0 means it failed.


Thanks, Ross...thanks, Mike. It's just the reverse of what I had thought.