06/24/2015 2863 views

I wrote a batch file to be pushed out over K1000 that uninstalls Office 2010 silently. When I push it to the selected machines, the script actually works and office is removed successfully. However, all of the machines show as "Failed" despite the script working as intended. Is there any reason for this?


The script itself is not a dependency, I put all of the text for it into the "Script Text" box and I've listed it as an online shell script. Do I need to put anything in the script itself to get the Kace to recognize that it succeeded?

Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author

If I'm not mistaken, a KScript will report "Failed" if any process being run by the script returns a non-zero exit code. The Office setup, for instance, may finish with an error code of '0' showing success, but have an exit code of 3010, indicating a reboot is required. When runkbot detects this return code, it assumes failure.
Answered 06/24/2015 by: BHC-Austin
Fourth Degree Black Belt

  • I have found this exact scenario to be true.
  • That would make a lot of sense. The script returns code 3010 so that'd probably be why. Thank you!