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?

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

zip the files with a batch file that will use xcopy commands with /q /y switches, then call that batch via distribution or script.  The /y is to overwrite.

Answered 05/16/2014 by: SMal.tmcc
Red Belt

Please log in to comment

Answers

1

the question now is ... how can I copy and extract this zipfile to all of my remote PCs at the same time ... then run the batch file.

Answered 05/16/2014 by: jaimec
White Belt

Please log in to comment
1

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.


Answered 05/16/2014 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity