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.
Answers (2)
The few machines that were having trouble running this script had a different password on the admin account that what it should have been.
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.
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 12 years ago