K1000 - Batch script runs successfully but is listed as "Failed"
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?
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
BHC-Austin
9 years ago
Top Answer
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.