KScript Not Running
Have a script to run Adobe Remote Update Manager with a batch file, the script itself works just fine I have tested it. However, there's a few things:
- It no longer shows on "Run Now Status" so I am assuming it doesn't run at all despite being on task schedule.
- Last few times it did appear on "Run Now Status" it says targeted 0 despite having a label of 400 computers.
Not sure why the script is not running on said devices on schedule, I set up the task on the KScript as follows:
Verify
1. Unzip
On Success
1. Launch batch file
Would the issue be somewhere on the label somehow or the task schedule feature on KACE? (I made an exact duplicate of the script to run on one device without a schedule or a label and it ran just fine.)
Thank you!
Answers (2)
Hi @rahmed,
You may create a report to check on the scheduled scripts status. Create a custom report with this SQL code, modify the script number accordingly. Hope this helps!
SELECT
KBOT.ID AS SCRIPT_ID,
KBOT.NAME AS SCRIPT_NAME,
KBOT.DESCRIPTION,
MACHINE.NAME AS COMPUTER_NAME,
KBOT_LOG.START_TIME AS STARTED,
KBOT_LOG.STOP_TIME AS FINISHED,
concat(KBOT_LOG.STOP_TIME - KBOT_LOG.START_TIME) AS ELAPSED_TIME_IN_SECS,
KBOT_LOG.STATUS AS STATUS,
CASE
WHEN KBOT_LOG.STATUS = 1 THEN "Success"
WHEN KBOT_LOG.STATUS != 1 THEN "Failure"
END AS STATUS
FROM KBOT, KBOT_LOG, KBOT_LOG_DETAIL, MACHINE
WHERE KBOT.ID = KBOT_LOG.KBOT_ID
AND KBOT_LOG.OUTPUT_DETAIL_ID = KBOT_LOG_DETAIL.ID
AND KBOT_LOG.MACHINE_ID = MACHINE.ID
AND KBOT_LOG.START_TIME = KBOT_LOG.START_TIME
AND KBOT_LOG.STOP_TIME = KBOT_LOG.STOP_TIME
AND KBOT_LOG.STATUS = KBOT_LOG.STATUS
AND KBOT.ID = 1234 /* CHANGE THIS NUMBER ENTRY TO THE SCRIPT ID FOR YOUR REPORT */
ORDER BY KBOT_LOG.START_TIME DESC