/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


K1000 - Batch script runs successfully but is listed as "Failed"

06/24/2015 3448 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

Comments


Answer Chosen by the Author

2
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
4th 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!

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