/build/static/layout/Breadcrumb_cap_w.png

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:
Posted by: BHC-Austin 9 years ago
4th Degree Black Belt
2

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.

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ