/build/static/layout/Breadcrumb_cap_w.png

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?


0 Comments   [ + ] Show comments

Answers (3)

Posted by: SMal.tmcc 10 years ago
Red Belt
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.

Posted by: jaimec 10 years ago
White Belt
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.

Posted by: SMal.tmcc 10 years ago
Red Belt
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.


 
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