running a Managed install repeadtedly
Hi
I want to run the managed install repeatedly(every day ) even after success.
3 Comments
[ + ] Show comments
Answers (2)
Answer Summary:
Please log in to answer
Posted by:
chucksteel
7 years ago
Create a managed install that places your script on the computer and then use a CIR to run the script via ShellCommandTextReturn.
Comments:
-
thanks - rahimpal 7 years ago
-
sorry i dint get that as im not expert in Kace
then use a CIR to run the script via ShellCommandTextReturn. ?
you can use CIR to run the script? - rahimpal 7 years ago -
Hi Chuck, can you tell me
how this can be done?
using CIR to run a script
CIR to run the script via ShellCommandTextReturn. - rahimpal 7 years ago-
The shell command can be any valid Windows command. So this is how I would approach this:
1. Decide on a location to place your script, like c:\company\userscript
2. Create a CIR that checks for the existence of that folder
3. Create an install script that will create the folder and place your script in it
4. Create a managed install with your install script from step 3 and the CIR from step 2
5. Create a CIR that runs the script:
ShellCommandTextReturn(c:\company\userscript\script.cmd)
This assumes that your script returns the output that you want displayed in the inventory. - chucksteel 7 years ago-
thanks for all your tips - rahimpal 7 years ago
Posted by:
nshah
7 years ago
Top Answer
I know you said every day which I take it to be once a day but you can also set the number of attempts in the managed installation from 3 to 0 and it will try to install on any machine that doesn't have the software based on your agent check in interval. it is more aggressive than a script but also an option.
Comments:
-
thanks - rahimpal 7 years ago
thanks...when ever i run a script it fails ..say atleast 3 failures in 50 machines...
i have created a script to count the evenid with 4624 and create a text file on every user machine and then used CIR to read the data..this
is find the most frequent logged in user then use it as owner of the machine
i have managed to run this in managed install as success rate was better in MI..
thanks - rahimpal 7 years ago