copy local file to a remote location
I would like to copy my local files (like batch files, registry entries, .exe) to a certain number of remote PCs and run/apply those files simultaneously. This way.. I will save lots of time installing/configuring each PC... also this will avoid mistakes since they are using the same files.
My next question is .... if the file is already there (existed)... how do I delete or override the file with the new one?
Answers (3)
Create a KScript, add those machines or labels to the script you want it to go to. upload the zip as a dependency.
You can tell it to run now if all the machines are on or schedule it to run every so often till they all get the changes.
Create a verify task to keep it from running over and over.
Verify one of the file you are replacing is there if it was not before
or
Verify a file was modified since... for one that is being replaced
Then under tasks choose launch a program and
use $(KACE_DEPENDENCY_DIR) for the directory
use cmd.exe for the file
use /c nameofbat.bat for the parameters
if you need better tracking on what machines are done but it may not happen as fast as a script create a distribution.