/build/static/layout/Breadcrumb_cap_w.png

Xcopy using script

For the life of me I cannot figure out how to copy a file to all computers using the K1000 appliance. I dont want to use File Sync because I need to push the file out right away and so far what I've seen is that File Sync sucks for that - you have to wait until the machine checks in - thats silly.

So in the scripts section, I'm trying to run an online script, run as domain admin, and I've tried two different tasks 1- launch cmd and commit "xcopy \\share\folder\file c:\" and 2) launch batch file (with the same command). I've used start /wait and that doesn't help. Nothing will work so far. It shouldn't be hard to copy a 1K file to all PCs using kace but it has been .

Can someone please help?

0 Comments   [ + ] Show comments

Answers (10)

Posted by: MoranTug 11 years ago
Senior Purple Belt
0

System account does not have network access which is what the scripts are set to as default, you need to run it as a user with network access to the source folder.

Posted by: cblake 12 years ago
Red Belt
0
Hmmm. Can you share the exact script (all of it, excluding your domain admin account info) for the group to make suggestions? Screenshot or XML export is best.
Posted by: RichB 12 years ago
Second Degree Brown Belt
0
\\share\folder\file
Does this location require AD credentials the server doesn't have? The samba share is better for server to file access permissions.
Posted by: craig.thatcher 12 years ago
Orange Belt
0
You can always add the file needed as a dependency and copy it from the local file system. i.e.
xcopy * c:\

This would copy everything from the dependency directory to the root of C:. Please note that if this is a "new" file and you have replication enabled, you'll have to failover or synchronize your replication machines.
Posted by: lefttunknown 12 years ago
Orange Belt
0
I already did. The script is "xcopy \\share\folder\file c:\"

thats it. should work.
Posted by: lefttunknown 12 years ago
Orange Belt
0
I thought about putting the file in \\kbox\client\ but I dont have permissions. Any idea how to change that?

ORIGINAL: RichB

Here's one we use for a simple file copy. For the task choose "Run a Batch File," give it a Script Name and modify these Batch file contents as needed for program "XYZ" and your UNC path to the samba share at "kbox\client."

md "%ProgramFiles%\XYZ"
xcopy "\\kbox\client\XYZ\*.*" "%ProgramFiles%\XYZ" /E /S /H /Y

Posted by: RichB 12 years ago
Second Degree Brown Belt
0
ORIGINAL: lefttunknown

I thought about putting the file in \\kbox\client\ but I dont have permissions. Any idea how to change that?


mount the share \\kbox\clientdrop with admin credentials, add your file and it will show up in \\kbox\client. Enable the share in Security settings.
Posted by: lefttunknown 12 years ago
Orange Belt
0
great thank you. I did just figure that out. I am trying to deploy the dell cctk along with the config file so I'm hoping I can do both in 1 script. If anyone has any recommendation, I would love to hear it. I have a thread going here: http://itninja.com/question/servers-installation-help13&mpage=1&key=&#83381
Posted by: craig.thatcher 12 years ago
Orange Belt
0
add the file as a dependency to the script. accessing the share is not necessary since it will copy the files down to execute the script.
Posted by: RichB 12 years ago
Second Degree Brown Belt
-1
Here's one we use for a simple file copy. For the task choose "Run a Batch File," give it a Script Name and modify these Batch file contents as needed for program "XYZ" and your UNC path to the samba share at "kbox\client."

md "%ProgramFiles%\XYZ"
xcopy "\\kbox\client\XYZ\*.*" "%ProgramFiles%\XYZ" /E /S /H /Y
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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