How to run a script (batch file) once on each machine with k1000?
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.
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.
Community Chosen Answer
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.