Hi all,

I want to run a script regularly on a KBOX 1100, but I'm not thrilled with the standard scheduling options available for batch files. I want to set it to run once per machine. But if I push it out just once, only machine that are powered on will get it, right? Am I misunderstanding this? If not, then what's the solution? If I run it on a schedule, then it may run multiple times on some machine.

Thanks for your help.

Answer Summary:
I also just found that I can run at batch file as part of an Offline KScript, which has an option to run just once.
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

3

You can build identification into the script you're running, and base a smart label on that ID.  I'd use the example of a custom registry value. You can create a custom registry value at HKLM\SOFTWARE\KACE that identifies when the script runs.  Create a smart label which uses a custom inventory rule to query that custom registry value and applies the label if it is missing.  Apply to all machines that match that criteria. Using that method, any machines which checks in and lacks that custom inventory rule will be served your script.

Answered 01/10/2013 by: tshupp
Second Degree Black Belt

Please log in to comment

Answers

0

Thanks for your help. I also just found that I can run at batch file as part of an Offline KScript, which has an option to run just once.

Answered 01/10/2013 by: marsred
Senior White Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share