/build/static/layout/Breadcrumb_cap_w.png

Why do some of my dependency batch files fail to run correctly through kace but run with no problems when ran manually from the local dependency directory?

The script logs show that the dependency batch file was executed (under the Activity Log) and the Output Log shows that it ran as the System. I even enabled redirection within a test dependency batch file, where the standard output and error output from each command is written to a new text file at the root of the c: drive. Those output text files don't show any errors that may be the reason that I didn't get the desired result from the batch file within kscript.

Like I said, when the kscript "runs", I see that it didn't do what it was supposed to do so I go to the local dependency directory of the kscript and run the batch file manually and it works perfectly. It's not the kscript configuration and it's not the code in the batch file.

Sometimes certain kscripts work and then sometimes those same kscripts don't fully work.

Is this a bug?
Is this a UAC issue in Windows 7 where the system account doesn't have privileges to execute certain commands? I also have the same issue in Windows XP, but less often.

Also, I'm not trying to access network shares within batch files or kscripts. I've had issues in the past accessing network shares when running as my domain\user account within Online Kscripts, needless to say that I have permission to access those shares.


0 Comments   [ + ] Show comments

Answers (2)

Posted by: philologist 11 years ago
Red Belt
0

I have had issues with this as well with certain commands.  I've usually found I can pick the script apart and narrow it down to one line that the KACE simply does not want to run.

One thing I did find that isn't readily documented is that when you do an online shell script, you need to change the script file name extension appropriately.  The default is a bash script.

Posted by: chucksteel 12 years ago
Red Belt
0

In order to test if the script runs as system you can use PSExec to open a command prompt as system. That will help eliminate one factor in your problem.

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:

Link

Related Links

Post

Related Posts

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