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.

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.
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

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.

Answered 11/21/2012 by: Crispyominus
Orange Belt

Please log in to comment

Answers

0

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

John

Answered 11/19/2012 by: jverbosk
Red Belt

  • 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?
Please log in to comment
Answer this question or Comment on this question for clarity