/build/static/layout/Breadcrumb_cap_w.png

How to run a script (batch file) once on each machine with k1000?

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.


0 Comments   [ + ] Show comments

Answers (2)

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.
Posted by: tshupp 11 years ago
3rd Degree Black Belt
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.

Posted by: marsred 11 years ago
Senior White Belt
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.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ