/build/static/layout/Breadcrumb_cap_w.png

Why are my kscripts running but not completing?

I made an offline kscript that runs a batch file to add an entry to the host file. 

--------------------------------

@echo off

set hostspath=%windir%\System32\drivers\etc\hosts

echo 0.0.0.0 test.sample.com >> %hostspath%

exit

--------------------------------

I tested this on 1 machine and it worked just fine.  so i go to push it out to about 30 machines that are all identical to the test machine and all but 7 have completed.  the 7 that dont complete just stay in the "Scripts Running" stage with the yellow question mark next to them that says "Status pending" when you mouse over it.  I have tried running this script multiple times on these machines but they always do the same thing.  All 7 of these pc's have the kace agent installed and are reporting in and show connected under my inventory.  Any help is greatly appreciated.


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
The few machines that were having trouble running this script had a different password on the admin account that what it should have been.
Posted by: Crispyominus 11 years ago
Orange Belt
3

Thanks for the replies.  This was an error on my part.  the few machines that were having trouble running this script had a different password on the admin account that what it should have been.  just thought that it would tell me it had a logon error instead of just sitting there never doing anything.   but all is resolved and thanks again for the replies.

Posted by: jverbosk 11 years ago
Red Belt
1

Does the script work locally?  Have you tried running under different accounts (i.e. run as local system, currently logged in user)?

John


Comments:
  • Click on the script name under the run now and from the following screen click the status and view the corresponding client log. What's does this say? - jdornan 11 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

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